* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f0 100%);
    color: #1a3a52;
    line-height: 1.6;
}

/* Header Styles */
.header-banner {
    background: linear-gradient(135deg, #1e5a8e 0%, #0d3a5c 100%);
    color: #ffd700;
    text-align: center;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(30,90,142,0.3);
}

.header-banner h1 {
    font-size: 1.2em;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Main Header */
.main-header {
    background: linear-gradient(135deg, #2c5f8d 0%, #1e4568 100%);
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(30,90,142,0.3);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,215,0,0.1) 50%, transparent 70%);
}

.logo-section {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.logo-section img {
    width: 200px;
    height: auto;
}

.main-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    color: #ffd700;
}

.main-header h2 {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.main-header .tagline {
    font-size: 1.1em;
    font-style: italic;
    color: #b8d4e8;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.motto {
    background-color: #1a3a52;
    color: #ffd700;
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
    font-style: italic;
    border-top: 3px solid #4682b4;
    border-bottom: 3px solid #4682b4;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e5a8e;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Focus Indicators */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

nav a:focus {
    background-color: #1e4568;
    outline: 3px solid #ffd700;
}

/* Improved Color Contrast */
.motto {
    background-color: #0d2a3f;
    color: #ffd700;
}

.nav-container {
    background-color: #2c5f8d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2c5f8d 0%, #1a3a52 100%);
    color: #ffd700;
    border: 2px solid #ffd700;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #1a3a52 0%, #0d2a3f 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.scroll-to-top.show {
    display: flex;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    margin: 5px;
    background-color: #4682b4;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid #5a96c7;
}

nav a:hover {
    background-color: #5a96c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(70,130,180,0.4);
    border-color: #ffd700;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Section Styles */
.section {
    background-color: #ffffff;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(30,90,142,0.15);
    border-left: 5px solid #4682b4;
}

.section h2 {
    color: #1e5a8e;
    margin-bottom: 20px;
    font-size: 2em;
    border-bottom: 2px solid #b8d4e8;
    padding-bottom: 10px;
}

.section h3 {
    color: #2c5f8d;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.section ul {
    list-style: none;
    padding-left: 0;
}

.section ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #1a3a52;
}

.section ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #4682b4;
    font-weight: bold;
}

.section a {
    color: #2c5f8d;
    text-decoration: none;
    border-bottom: 1px solid #b8d4e8;
    transition: all 0.3s ease;
}

.section a:hover {
    color: #4682b4;
    border-bottom-color: #4682b4;
}

/* Donation Section */
.donation-section {
    background: linear-gradient(135deg, #2c5f8d 0%, #1e4568 100%);
    color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(30,90,142,0.3);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.donation-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.donation-section h2 {
    color: #ffd700;
    border-bottom-color: #5a96c7;
    position: relative;
    z-index: 1;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.donation-card {
    background-color: rgba(255,255,255,0.15);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,215,0,0.3);
    backdrop-filter: blur(10px);
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255,215,0,0.3);
    background-color: rgba(255,255,255,0.2);
    border-color: #ffd700;
}

.donation-card h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

.donation-card p {
    color: #e8f4f8;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffd700;
    color: #1a3a52;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    margin: 5px;
}

.btn:hover {
    background-color: #ffed4e;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255,215,0,0.5);
}

.contact-info {
    background-color: rgba(26,58,82,0.5);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,215,0,0.3);
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    color: #ffd700;
    margin-bottom: 10px;
}

.contact-info p {
    color: #ffffff;
    font-size: 1.2em;
}

.contact-info a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a3a52 0%, #0d2538 100%);
    color: #b8d4e8;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 3px solid #4682b4;
}

footer p {
    font-size: 0.9em;
}

/* School Pages Specific Styles */
.section h2 {
    color: #1e5a8e;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4682b4;
}

.section h3 {
    color: #2c5f8d;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.section ul {
    list-style: none;
    padding-left: 0;
}

.section ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.8;
}

.section ul li::before {
    content: "▸";
    position: absolute;
    left: 10px;
    color: #4682b4;
    font-weight: bold;
}

.section ol {
    padding-left: 30px;
    margin: 15px 0;
}

.section ol li {
    padding: 8px 0;
    line-height: 1.8;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: linear-gradient(135deg, #2c5f8d 0%, #1e4568 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

table th:last-child {
    border-right: none;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #f0f0f0;
    color: #333;
    line-height: 1.6;
    vertical-align: top;
}

table td:last-child {
    border-right: none;
}

table td:first-child {
    font-weight: 600;
    color: #1e4568;
    background: #f8f9fa;
    text-align: center;
}

table tr:hover {
    background: #fffbf0;
}

table tr:last-child td {
    border-bottom: none;
}

table td:empty::after {
    content: '—';
    color: #ccc;
}

/* Highlight Box Enhanced */
.highlight-box {
    background: linear-gradient(135deg, #e8f4f8 0%, #ffffff 100%);
    border-left: 4px solid #4682b4;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(70,130,180,0.15);
}

.highlight-box h3 {
    color: #1e5a8e;
    margin-top: 0;
    margin-bottom: 15px;
}

.highlight-box p {
    margin: 10px 0;
    line-height: 1.8;
}

.highlight-box ul {
    margin: 10px 0;
}

/* Sanskrit Quote */
.sanskrit-quote, p[style*="italic"] {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 1.3em;
    color: #1e5a8e;
    text-align: center;
    padding: 20px;
    margin: 30px 0;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 1.8em;
    }
    
    .main-header h2 {
        font-size: 1.1em;
    }
    
    .main-header .tagline {
        font-size: 0.9em;
    }
    
    .section h2 {
        font-size: 1.5em;
    }
    
    .section h3 {
        font-size: 1.2em;
    }
    
    /* Table overflow fix */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0;
    }
    
    table {
        font-size: 0.9em;
        min-width: 600px;
    }
    
    table th, table td {
        padding: 10px;
    }
    
    /* Mobile Navigation */
    nav {
        flex-direction: column;
    }
    
    nav a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .donation-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-section img {
        width: 150px;
    }
}
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 1.8em;
    }

    .main-header h2 {
        font-size: 1.2em;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        width: 100%;
        text-align: center;
    }

    .donation-grid {
        grid-template-columns: 1fr;
    }
}

/* Highlight Box */
.highlight-box {
    background-color: #e8f4f8;
    border-left: 4px solid #4682b4;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.highlight-box p {
    color: #1a3a52;
    font-weight: 500;
}


/* Faculty Profile Pages - Modern Styling */
.profile-header {
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 5px solid #d4af37;
}

.profile-header img {
    max-width: 200px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-bottom: 1.5rem;
    border: 4px solid #fff;
}

.profile-header h2 {
    color: #1a3a52;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-title {
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-header p {
    color: #555;
    line-height: 1.8;
    margin: 0.5rem 0;
}

.profile-header a {
    color: #1a3a52;
    text-decoration: none;
    border-bottom: 1px solid #d4af37;
    transition: all 0.3s ease;
}

.profile-header a:hover {
    color: #d4af37;
    border-bottom-color: #1a3a52;
}

.container section {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-top: 3px solid #f5f5f5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.container section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.container section h3 {
    color: #1a3a52;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #d4af37;
    font-weight: 600;
}

.container section h4 {
    color: #2c5f7f;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.container section ul {
    list-style: none;
    padding-left: 0;
}

.container section ul li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    position: relative;
    line-height: 1.7;
    color: #444;
}

.container section ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

.container section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .profile-header {
        padding: 1.5rem;
        text-align: center;
    }
    
    .profile-header h2 {
        font-size: 1.5rem;
    }
    
    .container section {
        padding: 1.5rem;
    }
    
    .container section h3 {
        font-size: 1.3rem;
    }
}
