/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== REHMAT-E-ALAM EDU. TRUST COLOR THEME ========== */

/* Primary Colors - Inspired by Educational Excellence & Trust */
:root {
    /* Deep Teal & Navy Blue - Represents Trust, Wisdom, Education */
    --primary-dark: #0a4d68;      /* Deep Teal - Stability & Trust */
    --primary: #088395;          /* Rich Teal - Knowledge & Growth */
    --primary-light: #05bfdb;    /* Light Teal - Clarity & Progress */
    
    /* Gold & Warm Accents - Represents Excellence, Achievement */
    --secondary: #d4af37;        /* Classic Gold - Prestige & Quality */
    --secondary-light: #ffd700;  /* Bright Gold - Success & Achievement */
    --accent: #ff6b6b;          /* Coral Red - Energy & Passion */
    --accent-hover: #ff5252;    /* Darker Coral */
    
    /* Complementary Earth Tones */
    --tertiary: #8b4513;        /* Saddle Brown - Grounded & Reliable */
    --tertiary-light: #a0522d;  /* Sienna - Warmth & Heritage */
    
    /* Neutral Palette */
    --light-bg: #f0f8ff;        /* Alice Blue - Clean & Fresh */
    --white: #ffffff;
    --cream: #faf3e0;           /* Warm Cream - Tradition & Comfort */
    --gray-light: #e6f3f8;      /* Light Blue-Gray */
    --gray: #5d8aa8;            /* Air Force Blue */
    --gray-dark: #2c3e50;       /* Dark Blue-Gray - Professional */
    
    /* Text Colors */
    --text-dark: #1a3c40;       /* Dark Teal */
    --text: #2d545e;            /* Medium Teal */
    --text-light: #5d8aa8;      /* Light Blue-Gray */
    
    /* Status Colors */
    --success: #27ae60;         /* Green - Success */
    --warning: #f39c12;         /* Orange - Warning */
    --error: #e74c3c;           /* Red - Error */
    --info: #3498db;            /* Blue - Information */
}

/* Header Styles - Elegant Deep Teal */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(10, 77, 104, 0.2);
    border-bottom: 4px solid var(--secondary);
}

.school-info h1 {
    color: var(--secondary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.school-info p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Navigation Bar */
.navbar {
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(8, 131, 149, 0.15);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 18px 25px;
    display: block;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    background-color: rgba(5, 191, 219, 0.1);
    color: var(--secondary-light);
}

.nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    border-radius: 2px 2px 0 0;
}

.nav-menu a.active {
    background-color: rgba(5, 191, 219, 0.15);
    color: var(--secondary-light);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px 2px 0 0;
}

/* Buttons - Gold & Teal Combination */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--text-dark);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.4);
    color: var(--primary-dark);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(8, 131, 149, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 8px 16px rgba(8, 131, 149, 0.4);
}

/* Hero Section with Elegant Gradient */
.hero-section {
    background: linear-gradient(rgba(10, 77, 104, 0.9), rgba(8, 131, 149, 0.9)), 
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(10, 77, 104, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light), var(--secondary));
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--secondary-light);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* Cards with Elegant Design */
.notification-text, 
.notification-files,
.about-card,
.info-card,
.contact-form,
.school-details,
.location-section,
.file-card {
    background: linear-gradient(145deg, var(--white), var(--cream));
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(10, 77, 104, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
}

.notification-text::before,
.notification-files::before,
.about-card::before,
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 12px 12px 0 0;
}

.notification-text:hover,
.notification-files:hover,
.about-card:hover,
.info-card:hover,
.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(10, 77, 104, 0.2);
    border-color: var(--primary-light);
}

/* Headings with Gold Accents */
h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
}

h1 {
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

h2 {
    color: var(--primary-dark);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 12px;
    display: inline-block;
    margin-bottom: 30px;
}

section h2 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 15px;
}

section h2 i {
    color: var(--secondary);
    background: var(--light-bg);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

/* Gallery Items with Teal Overlay */
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(10, 77, 104, 0.15);
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(10, 77, 104, 0.25);
    border-color: var(--secondary);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 77, 104, 0.95));
    color: var(--white);
    padding: 20px;
    font-size: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .image-overlay {
    transform: translateY(0);
}

/* Tabs */
.notifications-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 32px;
    background: var(--light-bg);
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tab-btn:hover::before {
    width: 300px;
    height: 300px;
    opacity: 0.1;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(8, 131, 149, 0.3);
    z-index: 1;
}

.tab-btn:hover:not(.active) {
    background: rgba(5, 191, 219, 0.1);
    border-color: var(--secondary);
    color: var(--primary-dark);
}

/* Footer - Elegant Deep Design */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--text-dark) 100%);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
}

.footer-section h3 {
    color: var(--secondary-light);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 5px 0;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--secondary-light);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
}

/* Form Elements */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(8, 131, 149, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(8, 131, 149, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(8, 131, 149, 0.4);
}

/* Notification Items */
.notification-item {
    border-bottom: 2px solid var(--light-bg);
    padding: 20px 0;
    position: relative;
}

.notification-item::before {
    content: '📢';
    position: absolute;
    left: -25px;
    color: var(--secondary);
}

.notification-header h4 {
    color: var(--primary-dark);
    font-size: 18px;
}

.notification-date {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

/* Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--tertiary), var(--tertiary-light));
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--tertiary-light), var(--tertiary));
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(139, 69, 19, 0.4);
    color: var(--white);
}

/* School Details */
.detail-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--light-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.detail-item:hover {
    background-color: rgba(5, 191, 219, 0.05);
    border-radius: 8px;
    padding: 18px 15px;
}

.detail-label {
    font-weight: 700;
    color: var(--primary-dark);
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-label::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
}

.detail-value {
    color: var(--text);
    text-align: right;
    flex: 1;
    font-weight: 500;
}

/* Social Icons in Footer */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-3px) rotate(5deg);
    border-color: var(--secondary-light);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--primary-light));
    border-radius: 10px;
    border: 3px solid var(--light-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--primary-light), var(--primary));
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    section h2 {
        font-size: 26px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .detail-label, .detail-value {
        min-width: auto;
        text-align: left;
        width: 100%;
    }
    
    .notification-item::before {
        position: static;
        margin-right: 10px;
    }
}

/* Print Styles */
@media print {
    .header, .navbar, .footer {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .btn, .submit-btn, .download-btn {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .no-print {
        display: none;
    }
}