/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: white;
    color: white;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background-color: #643c94;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    padding: 5px 0;
}

/* Navigation Styles */
.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-header nav ul li a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    transition: color 0.3s;
    display: block;
}

.main-header nav ul li a:hover {
    color: #f3eb2e;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1000;
}

.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    position: relative;
    transition: 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    transition: 0.3s;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Geometric Shapes */
.geometric-circle, .geometric-circle-2, .geometric-circle-3, 
.geometric-circle-4, .geometric-circle-5, .geometric-circle-6 {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.geometric-circle {
    width: 200px;
    height: 200px;
    top: 5%;
    right: 2%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
}

.geometric-circle-2 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 10%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
}

.geometric-circle-3 {
    width: 350px;
    height: 350px;
    bottom: 30%;
    right: 30%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
}

.geometric-circle-4 {
    width: 200px;
    height: 200px;
    top: 35%;
    left: 15%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 65%);
}

.geometric-circle-5 {
    width: 220px;
    height: 220px;
    top: 20%;
    left: -5%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.geometric-circle-6 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: -5%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.geometric-cube, .geometric-cube-2 {
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    position: absolute;
    z-index: -1;
}

.geometric-cube {
    width: 200px;
    height: 200px;
    top: 70%;
    right: 20%;
}

.geometric-cube-2 {
    width: 150px;
    height: 150px;
    top: 15%;
    left: 40%;
}

/* Footer Styles */
.site-footer {
    background-color: #643c94;
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.footer-copyright {
    color: white;
    text-align: center;
    width: 100%;
    font-size: 0.8rem;
    opacity: 0.8;
    padding-top: 5px;
    margin-bottom: 5px;
}

.brand-logo {
    width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
}

.footer-social {
    display: flex;
    gap: 25px;
}

.social-icon {
    width: 28px;
    height: 28px;
    color: white;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* AD Form Styles */
.form-input, 
.form-textarea,
.tag-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.form-container,
.admin-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.admin-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 20px 50px;
    box-sizing: border-box;
    overflow-x: hidden;
}

#editor-container,
#new-editor-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.ql-editor {
    color: #333333 !important;
    background-color: #ffffff;
}

.ql-editor p, 
.ql-editor h1, 
.ql-editor h2, 
.ql-editor h3, 
.ql-editor h4, 
.ql-editor h5, 
.ql-editor h6, 
.ql-editor ul, 
.ql-editor ol {
    color: #333333 !important;
}

.file-upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    margin-top: 10px;
}

.file-label {
    margin-right: 10px;
    margin-bottom: 10px;
}

.file-selected {
    margin-top: 5px;
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 1250px) and (min-width: 1024px) {
    .main-header nav {
        margin-right: 30px;
    }
    
    .main-header nav ul {
        gap: 18px;
    }
    
    .main-header nav ul li a {
        padding: 10px 12px;
    }
}

@media (max-width: 1023px) {
    .menu-toggle {
        display: block;
        position: fixed;
        right: 20px;
        top: 40px; 
    }

    .main-header nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: #643c94;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 2rem;
        transition: 0.3s;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        z-index: 999;
    }

    .main-header nav ul.active {
        right: 0;
    }

    .main-header nav ul li a {
        font-size: 1.2rem;
        padding: 15px 0;
    }

    .site-footer {
        padding: 30px 20px;
        margin-top: 100px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 10px;
    }

    .footer-top {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .brand-logo {
        margin-bottom: 5px;
    }

    .footer-copyright {
        margin-top: 10px;
    }

    .menu-toggle.active .hamburger {
        background: transparent;
    }

    .menu-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .admin-title {
        margin-bottom: 15px;
    }
    
    .admin-form {
        padding: 20px 15px;
    }
    
    .form-input, 
    .form-textarea,
    .tag-input {
        font-size: 16px;
    }
}

@media (max-width: 664px) {
    .menu-toggle {
        top: 40px;
        right: 25px;
    }
}

@media (max-width: 420px) {
    .footer-social {
        gap: 15px;
    }
    
    .social-icon {
        width: 24px;
        height: 24px;
    }
    
    .brand-logo {
        width: 180px;
    }
}