:root {
    --primary: #1e3a5f;
    --primary-light: #2b5488;
    --secondary: #eef2f6;
    --accent: #f97316;
    --text-main: #1f2937;
    --text-light: #4b5563;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 10px 40px rgba(31, 38, 135, 0.05);
}

html {
    scroll-padding-top: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 35px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(31, 38, 135, 0.12);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.35);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

nav.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    transition: var(--transition);
}

nav.scrolled .logo a {
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

nav.scrolled .hamburger {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('assets/hero_bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 75, 126, 0.85) 0%, rgba(63, 108, 175, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.mission-vision {
    margin-bottom: 60px;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.glass-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.message-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-light);
    border-radius: 30px;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-light);
    color: white;
    box-shadow: 0 5px 15px rgba(43, 84, 136, 0.3);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-box {
    background: linear-gradient(to bottom right, #ffffff, #fcfcfc);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.03);
}

.quote-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 4rem;
    color: rgba(63, 108, 175, 0.1);
    z-index: 0;
}

.msg-box h4 {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.msg-box p {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    color: var(--text-light);
    text-align: justify;
}

.author {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.author strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.author span {
    color: var(--primary-light);
    font-size: 0.9rem;
}

/* Courses Section */
.bg-light {
    background-color: var(--bg-light);
}

.icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icon-header i {
    font-size: 2rem;
    color: var(--primary-light);
}

.info-block p {
    margin-bottom: 20px;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-list i {
    color: var(--accent);
    margin-top: 5px;
}

/* Contact List Target Highlight */
.contact-list li {
    padding: 10px;
    border-radius: 8px;
    transition: all 0.5s ease;
}

.contact-list li:target {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transform: scale(1.02);
}

.info-block:target {
    animation: highlightCard 2s ease;
}

@keyframes highlightCard {
    0% { box-shadow: 0 10px 40px rgba(31, 38, 135, 0.05); }
    30% { box-shadow: 0 15px 50px rgba(249, 115, 22, 0.3); border-color: var(--accent); transform: translateY(-5px); }
    100% { box-shadow: 0 10px 40px rgba(31, 38, 135, 0.05); border-color: var(--glass-border); transform: translateY(0); }
}

/* Infrastructure */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.infra-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.infra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-bottom-color: var(--primary-light);
}

.infra-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.infra-card:hover .infra-icon {
    background: var(--primary);
    color: white;
}

.infra-card h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.infra-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-about span {
    color: var(--accent);
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer h4 {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
}

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

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

.footer-contact i {
    color: var(--accent);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-main);
        justify-content: center;
    }
    
    nav .hamburger {
        display: block;
    }

    nav {
        background: rgba(0, 0, 0, 0.5);
        padding: 15px 0;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    
    .footer-grid { grid-template-columns: 1fr; }
}

/* Subpage Header */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
    color: white;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Adjust section padding for subpages if needed */
.subpage-content {
    padding: 80px 0;
    min-height: calc(100vh - 400px); /* rough footer/header height calc to keep footer down */
}

/* Profile Layout for Messages */
.msg-box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.msg-profile {
    flex: 0 0 200px;
    text-align: center;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.msg-content {
    flex: 1;
    min-width: 300px;
}

/* Page Images */
.page-img-full {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.infra-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Gallery Styles */
.gallery-section {
    padding: 60px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: white;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Dropdown Menu Styles */
.nav-links li {
    position: relative;
}
.dropdown-content {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 15px 35px 0px rgba(0,0,0,0.08);
    z-index: 100;
    border-radius: 12px;
    top: 100%;
    left: 0;
    padding: 15px 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
}
.dropdown-content li {
    display: block;
    margin: 0;
}
.nav-links .dropdown-content li a {
    color: var(--text-main) !important;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}
.nav-links .dropdown-content li a::after {
    display: none;
}
.nav-links .dropdown-content li a:hover {
    background-color: var(--secondary);
    color: var(--primary) !important;
    padding-left: 25px;
}
.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Dropdown Fix */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: transparent;
        display: none;
        padding: 0 0 0 20px;
        transform: none;
        border: none;
    }
    .dropdown.active .dropdown-content {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    .nav-links li {
        width: 100%;
    }
}
