/* 
   Global Institute of Technology - University Template 
   Inspired by modern university designs like VIT and Chitkara
*/

:root {
    /* Color Palette */
    --primary-color: #0d2b4f;      /* Deep Navy Blue */
    --primary-light: #164072;
    --primary-dark: #071932;
    --accent-color: #fca311;       /* Golden Yellow */
    --accent-hover: #e08e0b;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 60px rgba(13, 43, 79, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-norm: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-white { color: #ffffff !important; }
.text-light { color: rgba(255,255,255,0.8) !important; }
.accent-color { color: var(--accent-color) !important; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.bg-light { background-color: var(--bg-light); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.rounded-xl { border-radius: 16px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-norm);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    color: var(--primary-dark);
}

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

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

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

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

.btn-outline-light {
    background-color: transparent;
    color: white;
    border-color: white;
}

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

.btn-glow {
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.4);
}
.btn-glow:hover {
    box-shadow: 0 8px 25px rgba(252, 163, 17, 0.6);
}

/* Sections */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 2rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.top-bar-left span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right a {
    color: rgba(255,255,255,0.8);
    margin-left: 20px;
    font-weight: 500;
}

.top-bar-right a:hover {
    color: var(--accent-color);
}

/* Header & Nav */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-norm);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 5px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height var(--transition-norm);
}

.header.scrolled .header-inner {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.logo-text h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -1px;
}

.logo-text p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 24px;
}

.nav-list > li > a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-list > li > a i {
    font-size: 0.75rem;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--primary-color);
}

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

.nav-list > li > a:hover::after,
.nav-list > li > a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-norm);
    padding: 10px 0;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 24px;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition-fast);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 30px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13,43,79,0.9) 0%, rgba(13,43,79,0.7) 50%, rgba(13,43,79,0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(252, 163, 17, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.text-highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    max-width: 600px;
}

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

/* Modern Floating Stats Section */
.stats-modern-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-modern-section.has-bg-image {
    background: transparent;
}

.stats-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.stats-overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7, 25, 50, 0.85);
    z-index: 2;
}

.stats-modern-section::after {
    content: '';
    position: absolute;
    top: 50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(252,163,17,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.stats-modern-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 10;
}

.stat-modern-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-norm);
}

.stat-modern-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(252, 163, 17, 0.5);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-color), #ff8800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(252, 163, 17, 0.3);
}

.stat-modern-card .stat-content h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-modern-card .stat-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-section {
    padding-top: 150px; /* Account for floating stats */
}

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

.feature-list {
    margin: 30px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-list li i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.img-fluid {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .img-fluid {
    transform: scale(1.03);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 5px solid var(--accent-color);
}

.experience-years {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    color: var(--accent-color);
}

.experience-text {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-norm);
    border: 1px solid var(--border-color);
}

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

.program-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

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

.program-img-placeholder {
    width: 100%;
    height: 100%;
}

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

.program-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.program-content {
    padding: 30px;
}

.program-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.program-card:hover .program-content h3 {
    color: var(--primary-light);
}

.program-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.btn-link i {
    transition: transform var(--transition-fast);
}

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

/* Campus Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

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

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

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(7, 25, 50, 0.9) 0%, rgba(7, 25, 50, 0) 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-norm);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
}

/* Placements Section */
.placements-section {
    background-color: var(--primary-dark);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.placements-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(252,163,17,0.1) 0%, rgba(13,43,79,0) 70%);
    border-radius: 50%;
}

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

.placement-stats {
    display: flex;
    gap: 40px;
}

.p-stat h3 {
    font-size: 3rem;
    margin-bottom: 5px;
}

.recruiters-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
}

.recruiters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.recruiter-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-light);
    height: 80px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    cursor: pointer;
}

.recruiter-logo:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Modern Masonry News Section */
.news-masonry-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.news-masonry-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition-norm);
}

.news-masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Featured Large News */
.news-masonry-item.featured {
    height: 100%;
    min-height: 500px;
}

.news-masonry-item.featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-masonry-item.featured:hover img {
    transform: scale(1.05);
}

.news-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(7, 25, 50, 0.95) 0%, rgba(7, 25, 50, 0.8) 50%, rgba(7, 25, 50, 0) 100%);
    color: white;
}

.news-overlay-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.news-overlay-content p {
    color: rgba(255,255,255,0.8);
    display: -webkit-box;
    /* -webkit-line-clamp: 2; Deprecated/non-standard syntax warning, doing height instead below */
    overflow: hidden;
    text-overflow: ellipsis; 
}

/* Standard News Column */
.news-masonry-column {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
}

.news-masonry-item.standard {
    display: flex;
    flex-direction: column;
}

.news-masonry-item.standard img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content-box {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content-box.full-box {
    height: 100%;
}

.news-content-box.bg-primary {
    background: var(--primary-dark);
}

.news-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-category {
    color: var(--accent-color);
}

.news-date-text {
    color: var(--text-muted);
}
.news-overlay-content .news-date-text {
    color: rgba(255,255,255,0.7);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-norm);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.event-date {
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-width: 100px;
    text-align: center;
}

.event-date.bg-accent {
    background: var(--accent-color);
}

.event-date .day {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.event-date .month {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
}

.event-content {
    padding: 24px;
}

.event-content .tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.event-content h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.event-content h4 a {
    color: var(--primary-dark);
}

.event-content h4 a:hover {
    color: var(--primary-light);
}

.event-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 5px 0;
}

.event-content p i {
    width: 20px;
    color: var(--primary-color);
}

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

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 80px;
}

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

.footer h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

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

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

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0;
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* Top Scrolling Announcement */
.announcement-scroll {
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 8px 0;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.announcement-scroll marquee {
    width: 100%;
}

.mx-2 { margin: 0 15px; }

/* Header Announcement Btn */
.announcement-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--primary-dark);
    cursor: pointer;
    position: relative;
    padding: 5px;
    margin-right: 10px;
    transition: var(--transition-fast);
}

.announcement-btn:hover {
    color: var(--accent-color);
}

.notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid white;
}

/* Announcement Sidebar */
.announcement-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    z-index: 10000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: var(--transition-norm);
    display: flex;
    flex-direction: column;
}

.announcement-sidebar.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 25, 50, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

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

.sidebar-header {
    padding: 24px;
    background: var(--primary-dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-sidebar:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.announcement-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.announcement-item.new {
    background: rgba(252, 163, 17, 0.05);
    border-left: 3px solid var(--accent-color);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    border-bottom: none;
}

.announcement-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.announcement-item.new .announcement-date {
    color: var(--primary-color);
}

.announcement-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.announcement-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Fixed Right Side Enquire Button - Vertically Rotated */
.fixed-enquire-btn {
    position: fixed;
    right: 0;
    top: 50%;
    margin-top: -85px; /* Safe alternative to translateY(-50%) for vertical-rl */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: var(--accent-color);
    color: var(--primary-dark);
    border: none;
    padding: 20px 8px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 9999;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    border-radius: 8px 0 0 8px; /* Round left side */
    transition: var(--transition-norm);
    text-align: center;
    letter-spacing: 1px;
}

.fixed-enquire-btn:hover {
    background: var(--primary-dark);
    color: var(--accent-color);
    padding-right: 15px; /* Slight expand inward */
}

.fixed-enquire-btn i {
    display: inline-block;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* Admission Enquiry Popup */
.enquiry-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 25, 50, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-norm);
}

.enquiry-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.enquiry-popup-content {
    background: white;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.enquiry-popup-overlay.show .enquiry-popup-content {
    transform: translateY(0) scale(1);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.close-popup:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: rotate(90deg);
}

.popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.popup-image {
    background-image: url('assets/images/students_studying_1773255393281.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.popup-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(7, 25, 50, 0.9) 0%, rgba(7, 25, 50, 0) 100%);
    color: white;
}

.popup-form-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(13,43,79,0.1);
}

.w-100 {
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .hero-stats { position: relative; transform: none; bottom: auto; left: auto; max-width: 100%; margin-top: 40px; padding: 20px; }
    .hero { padding-bottom: 0; display: block; padding-top: 120px; }
    .about-section { padding-top: 80px; }
    .about-grid, .placements-grid { grid-template-columns: 1fr; gap: 40px; }
    .experience-badge { left: 0; bottom: 0; border-radius: 0 20px 0 20px; }
    .stats-modern-wrapper { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 900px) {
    .popup-grid { grid-template-columns: 1fr; }
    .popup-image { height: 200px; }
    .programs-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .news-masonry-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .top-bar { display: none; }
    .header-actions .btn-primary { display: none; } /* Hide Apply Now to make space for icons */
    .announcement-btn, .mobile-toggle { flex-shrink: 0; }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        transition: var(--transition-norm);
        overflow-y: auto;
    }
    .main-nav.active { left: 0; }
    .nav-list { flex-direction: column; width: 100%; gap: 0; }
    .nav-list > li { width: 100%; border-bottom: 1px solid var(--border-color); }
    .nav-list > li > a { padding: 15px 0; width: 100%; justify-content: space-between; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 15px; display: none; }
    .dropdown.active .dropdown-menu { display: block; }
    .mobile-toggle { display: block; }
}

@media (max-width: 600px) {
    .popup-image { display: none; } /* Hide image in mobile view popup entirely */
    .programs-grid, .news-grid { grid-template-columns: 1fr; }
    .recruiters-grid { grid-template-columns: repeat(2, 1fr); }
    .fixed-enquire-btn { font-size: 0.9rem; padding: 15px 10px; white-space: nowrap; }
    .stats-modern-wrapper { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.large, .gallery-item.wide { grid-column: span 1; grid-row: span 1; }
    .events-grid { grid-template-columns: 1fr; }
    .news-masonry-item.featured { min-height: 300px; }
    .hero-stats { flex-wrap: wrap; }
    .stat-card { min-width: 45%; margin-bottom: 20px; }
    .stat-divider { display: none; }
    .hero-title { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

