/* ========================================
   Unique International School - Custom Styles
   ======================================== */

/* ========== ROOT VARIABLES ========== */
:root {
    /* Brand Colors */
    --primary-color: #7d2e3f;      /* Maroon - from logo */
    --primary-dark: #5a1f2e;
    --primary-light: #9d4e5f;
    --secondary-color: #f39c12;     /* Gold accent */
    --accent-color: #e74c3c;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --gray-100: #f5f5f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --dark: #212529;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --section-padding-sm: 60px 0;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
}

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 10px 0;
    font-size: 0.875rem;
    color: var(--white);
}

.top-bar a {
    color: var(--white);
    transition: var(--transition-base);
    font-size: 0.875rem;
}

.top-bar a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.top-bar .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 8px;
    transition: var(--transition-base);
}

.top-bar .social-link:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

.btn-admission {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: var(--transition-base);
}

.btn-admission:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .top-bar {
        text-align: center;
    }
    .top-bar-left,
    .top-bar-right {
        justify-content: center !important;
        margin-bottom: 10px;
    }
    .top-bar .col-md-6 {
        text-align: center !important;
    }
}

/* ========== NAVIGATION ========== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: var(--transition-base);
}

.navbar.scrolled .logo-img {
    width: 50px;
    height: 50px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-800) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition-base);
    position: relative;
}

/* REMOVED - No underline effect */
/* .nav-link::after { ... } */

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: transparent;
}

/* Active indicator - small dot below instead of underline */
.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

/* Desktop: hover-triggered animation */
@media (min-width: 992px) {
    .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        display: block !important;
    }

    .navbar .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 0;
    }

    /* Keep dropdown open when hovering over it */
    .dropdown-menu:hover {
        display: block;
    }
}

/* Mobile: let Bootstrap handle all dropdown show/hide natively */
@media (max-width: 991px) {
    .dropdown-menu {
        transition: none;
        box-shadow: none;
        border: 1px solid var(--gray-200);
        background: var(--gray-100);
        border-radius: 8px;
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .dropdown-item {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Dropdown Items */
.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--gray-800);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white);
    padding-left: 2rem;
    border-left-color: var(--secondary-color);
}

/* Dropdown Toggle Arrow Animation */
.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Apply Now Button */
.navbar .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-base);
}

.navbar .btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link {
        margin: 0.25rem 0;
    }
    
    .navbar .btn-primary {
        margin-top: 1rem;
        width: 100%;
    }
    
    /* Mobile dropdowns handled entirely by Bootstrap's .show class */
    
    /* Remove active dot indicator on mobile */
    .nav-link.active::before {
        display: none;
    }
    
    /* Add background on mobile for active state */
    .nav-link.active {
        background: var(--gray-100);
    }
}


/* ========== PAGE HEADER STYLES - GRADIENT OVERLAY ========== */

/* Page Header Section */
.page-header {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 100px 0 80px;
}

/* Gradient Overlay - Dark gradient from left/bottom */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(107, 22, 1, 0.9) 0%,   /* dark chocolate brown */
        rgba(84, 37, 24, 0.75) 40%, /* coffee brown */
        rgba(121, 74, 35, 0.55) 70%, /* warm brown */
        rgba(200, 160, 120, 0.35) 100% /* light tan */
    );
    z-index: 1;
}

/* Alternative gradient - stronger on left side */
.page-header.gradient-left::before {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.5) 60%,
        transparent 100%
    );
}

/* Content wrapper - above gradient */
.page-header-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

/* Hero Text Styles - "I Am New, I Am Next, I Am Better" */
.hero-tagline {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-tagline .line {
    display: block;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-tagline .line .white-text {
    color: white;
    font-weight: 700;
}

.hero-tagline .line .orange-text {
    color: #f39c12;
    font-weight: 700;
}

/* Hero Description */
.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    max-width: 900px;
    margin-top: 20px;
    font-weight: 400;
}

/* Page Title Styles */
.page-header h1 {
    color: white;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Breadcrumb Styles */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    list-style: none;
}

.breadcrumb-custom .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.6);
    padding: 0 10px;
}

.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: #f39c12;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: #f39c12;
}

/* Responsive Design */
@media (max-width: 991px) {
    .page-header {
        min-height: 350px;
        padding: 80px 0 60px;
    }
    
    .hero-tagline .line {
        font-size: 2.75rem;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }
}

@media (max-width: 767px) {
    .page-header {
        min-height: 300px;
        padding: 60px 0 50px;
    }
    
    .hero-tagline .line {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
}




/* ========== BUTTONS ========== */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(125, 46, 63, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ========== SECTION TITLES ========== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title .subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title h2 {
    font-size: 2.75rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 1.5rem auto 0;
    color: var(--gray-600);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
}

/* ========== CARDS ========== */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    transition: var(--transition-smooth);
    height: 250px;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    font-size: 1rem;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark) 100%);
    color: var(--white);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-logo {
    max-width: 80px;
    /* filter: brightness(0) invert(1); */
}

.footer-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-right: 15px;
    margin-top: 3px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition-base);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px) rotate(360deg);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-base);
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ========== WHATSAPP FLOAT BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ========== UTILITY CLASSES ========== */
.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.bg-light-custom {
    background: var(--light-bg);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== RESPONSIVE HELPERS ========== */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .scroll-top-btn,
    .whatsapp-float {
        right: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
        bottom: 80px;
    }
}

/* ========== LOADING SPINNER ========== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.text-primary{
    color: #7d2e3f !important; 
}

/* ========== ACTIVITIES SECTION ========== */
.activity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.activity-image {
    position: relative;
    overflow: hidden;
    height: 325px;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(125, 46, 63, 0.9), rgba(125, 46, 63, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.activity-card:hover .activity-overlay {
    opacity: 1;
}

.activity-content h4 {
    color: var(--primary-color);
    font-weight: 600;
}

.activity-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.activity-link:hover {
    color: var(--primary-dark);
    padding-left: 10px;
}


/* ========== CTA SECTION ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.cta-box {
    padding: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.cta-box h3 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

.cta-btn:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.4);
    color: white;
}

.cta-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 767px) {
    .cta-box {
        padding: 40px 20px;
    }
    
    .cta-box h3 {
        font-size: 1.5rem;
    }
}