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

:root {
    --primary-color: #1E2F7A;
    --secondary-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --overlay: rgba(0, 0, 0, 0.5);
    --header-bg: #ffffff;
    --announcement-bg: rgba(255, 255, 255, 0.95);
}

body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

/* ============================================
   HEADER & NAVIGATION (REDESIGNED)
   ============================================ */

.header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    /* position: fixed; */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* 1. Header Top Bar */
.header-top {
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
}

.top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-utility-links {
    display: flex;
    gap: 20px;
}

.top-utility-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.top-utility-links a:hover {
    color: var(--primary-color);
}

.header-search-top .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f7fa;
    padding: 6px 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.header-search-top .search-box input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 12px;
    color: var(--text-dark);
    width: 150px;
}

.header-search-top .search-box svg {
    color: var(--text-light);
}

/* 2. Header Branding */
.header-branding {
    padding: 25px 0;
    background: white;
}

.logo-centered {
    display: flex;
    /* flex-direction: column; */
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    text-align: start;
    gap: 10px;
}

.main-logo {
    width: 70px;
    height: 100%;
    /* filter: grayscale(1) contrast(1.1); */
    transition: filter 0.3s ease;
}

.hero-badge-img {
    width: 220px;
    height: 100%;
}

/* .main-logo:hover {
    filter: grayscale(0) contrast(1);
} */

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    font-family: 'Porsha Richela', serif;
}

.brand-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #505B8E;
    letter-spacing: 2px;
    font-family: 'Porsha Richela', serif;
}

/* 3. Header Navigation Container */
.header-nav-container {
    background: var(--primary-color);
    /* Maroon from reference image */
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 50px;
}

.nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.header-nav-container .nav-link {
    color: white;
    font-weight: 600;
    font-size: 12px;
    padding: 15px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s;
}

.header-nav-container .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mega Menu Adjustments */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 99999;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    padding: 30px;
    min-width: fit-content;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.mega-menu-column h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4ff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Manrope', sans-serif;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 5px;
}

.mega-menu-column ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13.5px;
    padding: 10px 12px;
    border-radius: 6px;
    display: block;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
}

.mega-menu-column ul li a:hover {
    background: #f4f7ff;
    color: var(--primary-color);
    padding-left: 18px;
}

.mega-menu-column ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
    transition: height 0.25s ease;
}

.mega-menu-column ul li a:hover::before {
    height: 60%;
}

/* Nested Submenu Styles */
.mega-menu-column ul li.has-submenu {
    position: relative;
}

.mega-menu-column ul li.has-submenu::after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s;
}

.mega-menu-column ul li.has-submenu:hover::after {
    color: var(--primary-color);
}

.submenu-list {
    position: absolute;
    left: 100%;
    top: 0;
    background: #6D5E7B;
    /* Purple-ish background from the image */
    min-width: 220px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px 0;
    border-radius: 4px;
    z-index: 100;
}

.mega-menu-column ul li.has-submenu:hover .submenu-list {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px);
}

.submenu-list li {
    margin-bottom: 0 !important;
}

.submenu-list li a {
    color: white !important;
    padding: 12px 20px !important;
    font-size: 13px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu-list li:last-child a {
    border-bottom: none;
}

.submenu-list li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    padding-left: 25px !important;
}

.submenu-list li a::before {
    display: none !important;
}

/* Header Actions & Mobile */
.header-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle {
    display: none;
    /* Only mobile */
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    display: block;
    margin: 4px 0;
    transition: 0.3s;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    width: 100%;
    padding: 20px 30px;
    font-size: 24px;
    border: none;
    border-radius: 50px;
    outline: none;
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */

.menu-overlay {
    position: fixed;
    top: 80px;
    width: 100vw;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* Mobile Menu Search */
.menu-search {
    position: relative;
    margin-bottom: 40px;
    padding-top: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 60px 15px 50px;
    font-size: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    outline: none;
    background: white url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"%23666\" stroke-width=\"2\"><circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.35-4.35\"/></svg>') no-repeat 20px center;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.menu-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: var(--primary-color);
}

/* Mobile Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.menu-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.menu-section ul {
    list-style: none;
}

.menu-section ul li {
    margin-bottom: 8px;
}

.menu-section ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    padding: 5px 0;
}

.menu-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Search Highlighting */
.menu-section mark {
    background-color: #fef08a;
    color: var(--text-dark);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.menu-section,
.menu-section ul li {
    transition: opacity 0.2s ease, height 0.2s ease;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(30, 58, 138, 0.85);
    /* Institutional blue with transparency */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* margin-top: 260px; */
}

/* Background Slider */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translateX(100%);
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
    z-index: 1;
    opacity: 0;
}

.hero-bg-slide.active {
    transform: translateX(0);
    z-index: 2;
    opacity: 1;
}

.hero-bg-slide.prev {
    transform: translateX(-100%);
    z-index: 1;
    opacity: 1;
}

.hero-bg-slide:nth-child(1) {
    background-image: url('../images/law_college_bg_1.jpg');
}

.hero-bg-slide:nth-child(2) {
    background-image: url('../images/law_college_bg_2.jpg');
}

.hero-bg-slide:nth-child(3) {
    background-image: url('../images/law_college_bg_3.jpg');
}

.hero-bg-slide.active {
    left: 0;
    animation: slideZoom 10s ease-in-out;
}

.hero-bg-slide.prev {
    left: -100%;
}

@keyframes slideZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(59, 130, 246, 0.1) 100%);
    z-index: 2;
}

/* Hero Content */
.hero .container {
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    grid-column: 1;
}

.hero-badge {
    margin: 0 auto 30px;
    animation: fadeInDown 1s ease-out;
}

.hero-badge svg {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
}

.hero-title {
    font-family: 'Porsha Richela', serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-tagline {
    font-family: 'Porsha Richela', serif;
    font-size: 24px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Announcements */
.announcements {
    background: var(--announcement-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    animation: fadeInRight 1s ease-out 0.9s both;
    backdrop-filter: blur(10px);
    grid-column: 2;
    justify-self: end;
    min-height: 400px;
}

.announcements-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.announcements-header svg {
    flex-shrink: 0;
}

.announcements-header span {
    font-size: 16px;
    font-weight: 600;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 350px;
    overflow-y: auto;
}

.announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.announcement-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.announcement-text {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.4;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   WELCOME SECTION
   ============================================ */

.welcome {
    position: relative;
    padding: 100px 0;
    background-color: #f8faff;
    overflow: hidden;
}

.welcome-watermark {
    position: absolute;
    top: 20px;
    left: -220px;
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    /* Adjusting opacity since the SVG already has some */
}

.watermark-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.welcome-watermark-right {
    position: absolute;
    top: 20px;
    right: -220px;
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    transform: rotatey(180deg);
}

.welcome .container {
    position: relative;
    z-index: 2;
}

.welcome-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.welcome-title {
    font-family: 'Porsha Richela', serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.welcome-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.welcome-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.welcome-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #e5eefb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 250px;
}

.welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.1);
    border-color: var(--primary-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: #1e3a8a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 56px;
}

.card-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   ABOUT US SECTION
   ============================================ */

.about {
    position: relative;
    padding: 100px 0;
    background-color: #1e3a8a;
    /* Deep blue background */
    color: white;
    overflow: hidden;
}

/* Matty Texture Effect */
.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-title {
    font-family: 'Porsha Richela', serif;
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.about-list {
    list-style: none;
}

.about-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.about-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    font-size: 14px;
}

.about-list li strong {
    color: white;
    font-weight: 600;
}

/* Ornamental Frame & Portrait */
.about-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.ornamental-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.frame-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.portrait-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    clip-path: url(#portrait-clip);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    /* filter: grayscale(1) contrast(1.1); */
}

.ornamental-frame:hover .portrait-img {
    transform: scale(1.05);
}

/* ============================================
   HISTORY & INFRASTRUCTURE SECTION
   ============================================ */

.history {
    position: relative;
    padding: 100px 0;
    background-color: #eff6ff;
    /* Lightest blue background */
    overflow: hidden;
}

/* Stardust Background Effect */
.stardust-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 15% 40%, rgba(30, 64, 175, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 25% 65%, rgba(30, 64, 175, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 35% 15%, rgba(30, 64, 175, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 45% 45%, rgba(30, 64, 175, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 55% 75%, rgba(30, 64, 175, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 65% 35%, rgba(30, 64, 175, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 75% 65%, rgba(30, 64, 175, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 85% 25%, rgba(30, 64, 175, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 95% 55%, rgba(30, 64, 175, 0.03) 1px, transparent 1px);
    background-size: 200px 200px;
}

.history .container {
    position: relative;
    z-index: 2;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Gallery Styles */
.history-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-main {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-item {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.gallery-img:hover {
    transform: scale(1.05);
}

/* Info Styles */
.history-title {
    font-family: 'Porsha Richela', serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.milestone-card {
    background: white;
    padding: 24px;
    border-radius: 30px;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.milestone-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.05);
}

.milestone-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.milestone-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Action Buttons */
.history-actions {
    display: flex;
    gap: 20px;
}

.btn-history-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1e3a8a;
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-history-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.btn-history-primary .arrow {
    transition: transform 0.3s ease;
}

.btn-history-primary:hover .arrow {
    transform: translateX(5px);
}

.btn-history-secondary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: 6px;
    border: 1px solid #dbeafe;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-history-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   QUALITY ASSURANCE SECTION
   ============================================ */

.quality {
    position: relative;
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden;
}

.quality .container {
    position: relative;
    z-index: 2;
}

.quality-header {
    text-align: center;
    margin-bottom: 60px;
}

.quality-title {
    font-family: 'Porsha Richela', serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.quality-card {
    padding: 40px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.card-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Card Themes */
.card-pink {
    background-color: rgba(251, 113, 133, 0.05);
    border: 1px solid rgba(251, 113, 133, 0.2);
}

.card-pink:hover {
    border-color: rgba(251, 113, 133, 0.5);
}

.card-orange {
    background-color: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.card-orange:hover {
    border-color: rgba(251, 191, 36, 0.5);
}

.card-blue {
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.card-blue:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.card-green {
    background-color: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.card-green:hover {
    border-color: rgba(34, 197, 94, 0.5);
}

/* ============================================
   VISION & MISSION SECTION
   ============================================ */

.vision-mission {
    padding: 60px 0 100px;
    background-color: #f8faff;
}

.section-divider {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.section-divider svg {
    width: 200px;
    height: 40px;
}

.vision-row,
.mission-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.mission-row {
    grid-template-columns: 1fr 1.2fr;
}

.rounded-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Vision Card Styles */
.vision-card {
    position: relative;
    background-color: #1e3a8a;
    /* Deep blue */
    padding: 60px 40px;
    border-radius: 24px;
    color: white;
    overflow: hidden;
}

.vision-card.textured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    z-index: 1;
}

.vision-card>* {
    position: relative;
    z-index: 2;
}

.vision-icon {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.vision-title {
    font-family: 'Porsha Richela', serif;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 20px;
}

.vision-text {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
}

/* Mission Styles */
.mission-title {
    font-family: 'Porsha Richela', serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 35px;
}

.mission-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mission-item {
    background: white;
    padding: 20px 25px;
    border-radius: 30px;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.mission-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.dot-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
    position: relative;
}

.dot-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
}

.mission-item p {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ============================================
   COURSES SECTION
   ============================================ */

.courses {
    position: relative;
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden;
}

.courses-watermark {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    opacity: 0.1;
    /* Adjusted for better visibility with the new SVG */
    pointer-events: none;
    z-index: 1;
}

.courses .container {
    position: relative;
    z-index: 2;
}

.courses-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.courses-title {
    font-family: 'Porsha Richela', serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.courses-subtitle {
    font-size: 16px;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-register {
    display: inline-block;
    background-color: #1e3a8a;
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.2);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.course-image-wrapper {
    height: 280px;
    overflow: hidden;
    margin: 15px;
    border-radius: 12px;
}

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

.course-card:hover .course-image {
    transform: scale(1.05);
}

.course-content {
    padding: 20px 30px 40px;
}

.course-name {
    font-family: 'Porsha Richela', serif;
    font-size: 28px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 25px;
}

.course-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.course-details p {
    font-size: 14px;
    color: var(--text-dark);
}

.course-details span {
    color: #64748b;
    font-weight: 500;
    margin-right: 5px;
}

.btn-course-details {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid #1e40af;
    color: #1e40af;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-course-details:hover {
    background-color: #1e40af;
    color: white;
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */

.why-choose {
    padding: 100px 0;
    background-color: #f8faff;
    position: relative;
    overflow: hidden;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Visual Side Styles */
.why-choose-visual {
    position: relative;
}

.featured-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e2e8f0;
    z-index: 2;
}

.experience-badge .years {
    font-family: 'Porsha Richela', serif;
    font-size: 48px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge .label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
}

/* Content Side Styles */
.section-header-left {
    margin-bottom: 50px;
}

.why-choose-title {
    font-family: 'Porsha Richela', serif;
    font-size: 42px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.why-choose-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    max-width: 500px;
}

/* Choice Grid Styles */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.choice-card {
    background-color: white;
    padding: 35px 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.choice-icon {
    width: 50px;
    height: 50px;
    color: #1e3a8a;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.choice-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
    transition: all 0.4s ease;
}

.choice-card-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    transition: all 0.4s ease;
}

/* Choice Card Hover Effect */
.choice-card:hover {
    background-color: #1e3a8a;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.2);
    border-color: #1e3a8a;
}

.choice-card:hover .choice-icon,
.choice-card:hover .choice-card-title,
.choice-card:hover .choice-card-text {
    color: white;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery {
    padding: 100px 0;
    background-color: #f0f4ff;
    /* Light bluish background from image */
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-icon {
    margin-bottom: 20px;
}

.gallery-title {
    font-family: 'Porsha Richela', serif;
    font-size: 48px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.gallery-title span {
    color: #1e3a8a;
}

.gallery-subtitle {
    font-size: 15px;
    color: #64748b;
    line-height: 1.8;
}

.gallery-wrapper {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-actions {
    text-align: center;
    margin-top: 50px;
}

.btn-gallery-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1e3a8a;
    color: white;
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-gallery-view-all:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn-gallery-view-all svg {
    transition: transform 0.3s ease;
}

.btn-gallery-view-all:hover svg {
    transform: translateX(5px);
}

/* ============================================
   GALLERY PAGE STYLES
   ============================================ */

.gallery-page {
    padding: 60px 0 100px;
    background-color: #f8faff;
    min-height: 80vh;
}

.gallery-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-page-title {
    font-family: 'Porsha Richela', serif;
    font-size: 48px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.gallery-page-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-page-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-sidebar {
    flex: 0 0 280px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.gallery-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.gallery-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-category-item {
    margin-bottom: 10px;
}

.gallery-category-link {
    display: block;
    padding: 12px 18px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-category-link:hover {
    background: #f0f4ff;
    color: #1e3a8a;
    transform: translateX(5px);
}

.gallery-category-link.active {
    background: #1e3a8a;
    color: white;
}

.gallery-content {
    flex: 1;
}

.gallery-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-content-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    aspect-ratio: 1;
    background: #e2e8f0;
}

.gallery-content-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-content-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-content-item:hover img {
    transform: scale(1.1);
}

.gallery-content-item.hidden {
    display: none;
}

/* Responsive Gallery Page */
@media (max-width: 1024px) {
    .gallery-page-container {
        flex-direction: column;
    }

    .gallery-sidebar {
        flex: 1;
        position: relative;
        top: 0;
    }

    .gallery-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .gallery-category-item {
        margin-bottom: 0;
    }

    .gallery-category-link {
        padding: 10px 20px;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .gallery-page-title {
        font-size: 36px;
    }

    .gallery-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* ============================================
   GALLERY LIGHTBOX MODAL
   ============================================ */

.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-image {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-content img {
        max-height: 85vh;
    }
}

/* ============================================
   PRINCIPAL'S DESK SECTION
   ============================================ */

.principal {
    background-color: #f8faff;
    background-image:
        linear-gradient(rgba(30, 58, 138, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    padding: 100px 0;
    position: relative;
}

.principal-card {
    background-color: white;
    border: 8px solid #7c9aff;
    /* Soft blue border from design */
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.principal-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

.principal-image-container {
    padding: 10px;
}

.principal-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.principal-message {
    padding: 20px 40px 20px 0;
}

.principal-title {
    font-family: 'Porsha Richela', serif;
    font-size: 36px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.greeting {
    font-size: 16px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 15px;
}

.message-content {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 25px;
}

.message-content p {
    margin-bottom: 15px;
}

.principal-name {
    font-family: 'Porsha Richela', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
}

.principal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.btn-principal-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1e3a8a;
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-principal-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

.btn-principal-secondary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #1e3a8a;
    padding: 14px 28px;
    border-radius: 6px;
    border: 1px solid #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-principal-secondary:hover {
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.05);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 100px 0;
    background-color: #f8faff;
}

.contact-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    padding: 20px;
}

.contact-flex {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

/* Visual Left Styles */
.contact-visual {
    flex: 0 0 45%;
    background-color: #1e3a8a;
    border-radius: 30px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 600px;
}

.visual-title {
    font-family: 'Porsha Richela', serif;
    font-size: 56px;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    z-index: 2;
}

.visual-graphic {
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 70%;
    z-index: 1;
}

.student-graphic {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* object-position: bottom; */
    filter: drop-shadow(0 -10px 20px rgba(0, 0, 0, 0.2));
}

/* Form Right Styles */
.contact-form-side {
    flex: 1;
    padding: 40px 20px 20px 0;
    display: flex;
    flex-direction: column;
}

.form-header {
    margin-bottom: 35px;
}

.form-subtitle {
    font-size: 18px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.form-title {
    font-family: 'Porsha Richela', serif;
    font-size: 42px;
    font-weight: 700;
    color: #1e3a8a;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #334155;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: none;
}

.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background-color: #1e3a8a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Info Row Styles */
.contact-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.contact-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    border-color: #1e3a8a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-icon {
    color: #1e3a8a;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}

.info-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1.3;
}

/* ============================================
   FOOTER SECTION
   ============================================ */

.site-footer {
    background-color: #1e3a8a;
    color: white;
    padding: 60px 0 0 0;
}

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

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    position: relative;
    display: inline-block;
}

.institution-name {
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    font-size: 14px;
}

.footer-info p {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 8px;
    line-height: 1.6;
}

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

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

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
    display: inline-block;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    background-color: #f8faff;
    color: #1e3a8a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.footer-bottom p {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .nav-link {
        font-size: 13px;
        padding: 10px 12px;
    }

    .hero .container {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }

    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-content {
        grid-column: 1;
        max-width: 100%;
    }

    .announcements {
        grid-column: 1;
        justify-self: center;
        max-width: 500px;
    }

    .hero-title {
        font-size: 36px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-list li {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-list li::before {
        position: relative;
        margin-bottom: 10px;
    }

    .history-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .history-title {
        text-align: center;
    }

    .history-actions {
        justify-content: center;
    }

    .quality-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vision-row,
    .mission-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-row {
        display: flex;
        flex-direction: column-reverse;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    /* Gallery Responsive */
    .gallery-wrapper {
        overflow-x: auto;
        padding-bottom: 20px;
        scrollbar-width: thin;
        scrollbar-color: #1e3a8a #f0f4ff;
    }

    .gallery-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .gallery-wrapper::-webkit-scrollbar-thumb {
        background: #1e3a8a;
        border-radius: 10px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 300px);
        /* Forces horizontal overflow on mobile */
        grid-auto-rows: 250px;
    }

    .gallery-header {
        margin-bottom: 40px;
    }

    .gallery-title {
        font-size: 36px;
    }

    /* Principal Desk Responsive */
    .principal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .principal-message {
        padding: 0;
    }

    .principal-card {
        padding: 15px;
        border-width: 6px;
    }

    .principal-image-container {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Contact Responsive */
    .contact-flex {
        flex-direction: column;
    }

    .contact-visual {
        min-height: 400px;
        padding: 40px 30px;
    }

    .visual-title {
        font-size: 40px;
    }

    .contact-form-side {
        padding: 20px 0;
    }

    .contact-info-row {
        grid-template-columns: 1fr;
    }

    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .section-header-left {
        text-align: center;
    }

    .why-choose-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .featured-img {
        height: 450px;
    }

    .experience-badge {
        right: 20px;
        bottom: 20px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .logo-title {
        font-size: 11px;
    }

    .logo-subtitle {
        font-size: 10px;
    }

    .menu-toggle {
        padding: 8px 15px;
        gap: 10px;
    }

    .menu-toggle svg {
        width: 20px;
        height: 20px;
    }

    .menu-toggle .hamburger-icon {
        width: 20px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .hero-tagline {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 12px 20px;
    }

    .welcome-title {
        font-size: 40px;
    }

    .about-title {
        font-size: 40px;
    }

    .history-title {
        font-size: 40px;
    }

    .gallery-main {
        height: 300px;
    }

    .gallery-item {
        height: 150px;
    }

    .history-actions {
        flex-direction: column;
        align-items: center;
    }

    .quality-grid {
        grid-template-columns: 1fr;
    }

    .quality-title {
        font-size: 40px;
    }

    .vision-title,
    .mission-title {
        font-size: 32px;
        text-align: center;
    }

    .rounded-img {
        height: 300px;
    }

    .vision-card {
        padding: 40px 25px;
    }

    .courses-title {
        font-size: 40px;
    }

    .course-image-wrapper {
        height: 220px;
    }

    .course-name {
        font-size: 24px;
    }

    .btn-history-primary,
    .btn-history-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-title {
        font-size: 36px;
    }

    .experience-badge {
        padding: 15px;
    }

    .experience-badge .years {
        font-size: 32px;
    }

    .principal-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-principal-primary,
    .btn-principal-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .visual-title {
        font-size: 32px;
    }

    .contact-card {
        padding: 10px;
        border-radius: 25px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-heading {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 10px 40px;
    }

    .hero-badge svg {
        width: 60px;
        height: 60px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .hero-tagline {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .announcements {
        padding: 15px;
        border-radius: 10px;
    }

    .announcements-header {
        margin-bottom: 15px;
    }

    .announcement-text {
        font-size: 13px;
    }

    .btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Mobile Adjustments for Redesign */
@media (max-width: 992px) {
    .header-top {
        display: none;
    }

    .header-branding {
        padding: 15px 0;
    }

    .brand-title {
        font-size: 16px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    /* .main-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    } */

    .header-nav-container .nav {
        display: none;
        /* Hide desktop nav */
    }

    .nav-wrapper {
        justify-content: flex-end;
        min-height: 40px;
    }

    .menu-toggle {
        display: block;
    }



}


/* ============================================
   INNER PAGE STYLES
   ============================================ */

.inner-page-hero {
    position: relative;
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
    background-image: linear-gradient(rgba(30, 47, 122, 0.9), rgba(30, 47, 122, 0.9)), url('../images/law_college_bg_1.jpg');
    background-size: cover;
    background-position: center;
}

.page-title {
    font-family: 'Porsha Richela', serif;
    font-size: 42px;
    margin-bottom: 20px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb span {
    color: var(--secondary-color);
}

.page-content {
    padding: 80px 0;
    background: #fdfdfd;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.text-block p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.content-ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.content-ul li {
    margin-bottom: 10px;
    font-size: 16px;
    position: relative;
    list-style-type: none;
    padding-left: 15px;
}

.content-ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* PDF Viewer Styles */
.pdf-viewer-container {
    position: relative;
    width: 100%;
    height: 800px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.pdf-viewer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .pdf-viewer-container {
        height: 500px;
    }
}

/* ============================================
   ACADEMIC CALENDAR TABLE STYLES
   ============================================ */

.academic-calendar-table-container {
    margin: 30px 0;
}

.academic-calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.academic-calendar-table thead {
    background-color: #fef9c3;
    /* Light yellow background */
}

.academic-calendar-table th {
    padding: 18px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    /* Purple text */
    border: 1px solid #e5e7eb;
    /* Light gray border */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.academic-calendar-table tbody tr {
    background: white;
    transition: background-color 0.3s ease;
}

.academic-calendar-table tbody tr:hover {
    background-color: #f9fafb;
}

.academic-calendar-table td {
    padding: 18px 20px;
    font-size: 15px;
    color: var(--text-dark);
    border: 1px solid #e5e7eb;
    /* Light gray border */
}

.academic-calendar-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    width: 80px;
}

.academic-calendar-table td:nth-child(2) {
    font-weight: 500;
}

.view-link {
    color: #3b82f6;
    /* Blue link color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .academic-calendar-table-container {
        overflow-x: auto;
    }

    .academic-calendar-table {
        min-width: 500px;
    }

    .academic-calendar-table th,
    .academic-calendar-table td {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* ============================================
   RULES PAGE WITH SIDEBAR LAYOUT
   ============================================ */

.rules-page-hero {
    position: relative;
    padding: 60px 0 40px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    background-image: linear-gradient(rgba(30, 47, 122, 0.9), rgba(30, 47, 122, 0.9)), url('../images/law_college_bg_1.jpg');
    background-size: cover;
    background-position: center;
}

.rules-page-content {
    padding: 40px 0 80px;
    background: #f8fafb;
}

.rules-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Left Sidebar */
.rules-sidebar {
    background: #f5f5f5;
    /* Light grey background */
    border-radius: 8px;
    padding: 20px 0;
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.breadcrumb-sidebar {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.breadcrumb-sidebar a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-sidebar a:hover {
    color: var(--primary-color);
}

.breadcrumb-sidebar span {
    color: var(--text-dark);
    font-weight: 500;
}

.active-section {
    display: inline-block;
    background: #f97316;
    /* Orange background */
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rules-nav {
    padding: 0;
}

.rules-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rules-nav-list li {
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}

.rules-nav-list li:last-child {
    border-bottom: none;
}

.rules-nav-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.rules-nav-list li a:hover {
    background: #e5e7eb;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

.rules-nav-list li.active a {
    background: #e5e7eb;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Sub-menu Styles */
.rules-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.rules-nav-list li.active .rules-submenu,
.rules-nav-list li:hover .rules-submenu {
    display: block;
}

.rules-submenu li {
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}

.rules-submenu li:last-child {
    border-bottom: none;
}

.rules-submenu li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.rules-submenu li a:hover {
    background: #e5e7eb;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 45px;
}

.rules-submenu li.active a {
    background: #e5e7eb;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Right Content Area */
.rules-main-content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

.rules-content-wrapper {
    width: 100%;
}

.rules-content-wrapper .text-block {
    margin: 0;
}

.rules-content-wrapper .text-block p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .rules-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rules-sidebar {
        position: relative;
        top: 0;
    }

    .rules-main-content {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .rules-page-hero {
        padding: 40px 0 30px;
    }

    .rules-page-content {
        padding: 20px 0 40px;
    }

    .rules-sidebar {
        padding: 15px 0;
    }

    .sidebar-header {
        padding: 0 15px 15px;
    }

    .rules-nav-list li a {
        padding: 12px 15px;
        font-size: 12px;
    }

    .rules-submenu li a {
        padding: 10px 15px 10px 30px;
        font-size: 11px;
    }

    .rules-submenu li a:hover {
        padding-left: 35px;
    }

    .rules-main-content {
        padding: 20px 15px;
    }
}