@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-red: #a91f23;
    --dark-blue: #1a1a1a;
    --cyan: #ff3b30;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e5e7eb;
    
    --transition: all 0.3s ease;
}

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

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

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-blue);
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-cyan { color: var(--cyan); }
.text-primary { color: var(--primary-red); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #7d1519;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 31, 35, 0.3);
}

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

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

.btn-outline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline-pill:hover {
    background-color: var(--white);
    color: var(--dark-blue);
}

/* --- Header Styles --- */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

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

.top-bar-right {
    display: flex;
    gap: 20px;
}

.top-bar-right a {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.main-header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Inner pages do not have the homepage hero behind the navigation. */
.main-header.inner-page-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Keep the shared header consistent on pages that load utility CSS afterwards. */
.main-header .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo {
    height: 50px;
    transition: var(--transition);
}

.logo-dark {
    display: none;
}

.main-header.scrolled .logo-light {
    display: none;
}

.main-header.scrolled .logo-dark {
    display: block;
}

.main-header.inner-page-header .logo-light { display: none; }
.main-header.inner-page-header .logo-dark { display: block; }

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    transition: var(--transition);
}

.main-header.scrolled .menu-toggle { border-color: var(--dark-blue); }
.main-header.scrolled .menu-toggle span { background: var(--dark-blue); }

.nav-links {
    display: flex;
    gap: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    padding: 10px 0;
    display: block;
    color: var(--white);
    transition: var(--transition);
}

.main-header.scrolled .nav-links a {
    color: var(--dark-blue);
}

.main-header.inner-page-header .nav-links a { color: var(--dark-blue); }

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

.has-dropdown > a::after {
    content: '\f107'; 
    font-family: 'FontAwesome';
    margin-left: 5px;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 10;
}

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

.main-header .dropdown li a {
    padding: 8px 20px;
    font-weight: 500;
    color: var(--dark-blue) !important;
}

.dropdown li a:hover {
    background: var(--light-bg);
    color: var(--primary-red);
}

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

.phone-icon {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.phone-icon:hover {
    color: var(--dark-blue);
}

.main-header.scrolled .btn-outline-pill {
    color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.main-header.inner-page-header .btn-outline-pill {
    color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.main-header.scrolled .btn-outline-pill:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

.main-header.inner-page-header .btn-outline-pill:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('https://kcn.edu.in/images/header.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 22, 44, 0.7) 0%, rgba(11, 22, 44, 0.3) 50%, rgba(11, 22, 44, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    transform: translateX(-100px);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 60px;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cyan);
}

.stat-item h4 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.stat-item span {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* --- About Section --- */
.about-section {
    background-color: var(--white);
}

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

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-images img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    object-fit: cover;
    height: 100%;
}

.img-large {
    grid-column: span 2;
    height: 250px;
}

.img-small {
    height: 200px;
}

.about-content h5 {
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.vm-card {
    padding: 25px;
    border-radius: 12px;
    background-color: #f0fdf4; /* Light green tint for mission */
}

.vm-card:first-child {
    background-color: #fce8e9; /* Light red tint for vision */
}

.vm-card .icon {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.vm-card:first-child .icon {
    color: var(--primary-red);
}
.vm-card:last-child .icon {
    color: #22c55e;
}

.vm-card h4 {
    margin-bottom: 10px;
}

.vm-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

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

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

.course-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.course-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.course-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 40px;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--primary-red);
}

.course-arrow {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.course-card:hover .course-arrow {
    background-color: var(--dark-blue);
}

.view-all-btn {
    text-align: center;
    margin-top: 40px;
}

/* --- Life at KCN --- */
.life-section {
    background-color: var(--white);
}

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

.life-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

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

.feature-item {
    text-align: center;
}

.feature-item .icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.feature-item h5 {
    font-size: 0.9rem;
    color: var(--text-main);
}

.life-slider-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.life-slider-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.btn-virtual-tour {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(169, 31, 35, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    z-index: 10;
}

/* --- Recent Events --- */
.events-section {
    background-color: var(--light-bg);
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.events-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0;
}

.view-link {
    color: var(--primary-red);
    font-weight: 600;
}

.view-link:hover {
    text-decoration: underline;
}

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

.event-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.event-img-wrap {
    position: relative;
    height: 180px;
}

.event-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--white);
    color: var(--primary-red);
    padding: 5px 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    line-height: 1.1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-date-badge span {
    display: block;
    font-size: 1.2rem;
}

.event-date-badge small {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-content {
    padding: 20px;
}

.event-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

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

/* --- News and Hospitals --- */
.news-hospital-section {
    background-color: var(--white);
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.list-header h3 {
    font-size: 1.5rem;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-date {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.news-date span {
    display: block;
    font-weight: 700;
    color: var(--primary-red);
}

.news-date small {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.news-text h5 {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.news-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hospital-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    margin-bottom: 15px;
}

.hospital-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.hospital-text {
    flex: 1;
}

.hospital-text h5 {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.hospital-text p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.btn-small {
    padding: 6px 15px;
    font-size: 0.85rem;
}

/* --- CTA Banner --- */
.cta-banner {
    background-color: var(--primary-red);
    background-image: linear-gradient(90deg, var(--dark-blue) 0%, var(--primary-red) 100%);
    color: var(--white);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 15px;
}

.cta-image {
    position: absolute;
    left: 0%;
    bottom: 0;
    height: 120%;
    z-index: 1;
    pointer-events: none;
}

/* Adjust cta layout for image */
.cta-inner {
    padding-left: 35%;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-blue);
    color: #cbd5e1;
    padding: 70px 0 20px;
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

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

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

.social-links a:hover {
    background: var(--primary-red);
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .courses-grid, .events-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .life-grid, .two-col-grid { grid-template-columns: 1fr; gap: 40px; }
    .cta-inner { padding-left: 20px; flex-direction: column; text-align: center; gap: 30px; }
    .cta-image { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Header Responsive */
    .header-inner { padding: 12px 20px; }
    .logo { height: 45px; }
    .nav-links { gap: 15px; font-size: 0.9rem; }
    .header-actions { gap: 10px; }
    .btn-outline-pill { padding: 8px 16px; font-size: 0.9rem; }
}

@media (max-width: 768px) {
    /* General */
    .container { padding: 0 15px; }
    .section-padding { padding: 50px 0; }
    
    /* Header Responsive Mobile */
    .main-header .container { padding-left: 15px; padding-right: 15px; }
    .header-inner { padding: 10px 15px; }
    .logo { height: 40px; }
    .menu-toggle { display: block; }
    .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 12px 15px 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        background: var(--dark-blue);
        box-shadow: 0 10px 20px rgba(0,0,0,0.16);
    }
    .main-nav.is-open { display: flex; }
    .main-header.inner-page-header .main-nav { background: var(--white); }
    .main-header.inner-page-header .dropdown { background: var(--light-bg); }
    .main-header.inner-page-header .nav-links a,
    .main-header.inner-page-header .dropdown li a { color: var(--dark-blue); }
    .nav-links { flex-direction: column; gap: 0; font-size: 0.95rem; }
    .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.16); padding: 0; }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { padding: 12px 0; color: var(--white); }
    .has-dropdown > a::after { margin-left: 8px; font-size: 0.8rem; }
    .dropdown { display: none; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0,0,0,0.18); min-width: auto; border-radius: 0; padding: 0 15px; }
    .has-dropdown.is-open .dropdown { display: block; }
    .dropdown li { padding-left: 0; }
    .dropdown li a { padding: 9px 0; }
    .header-actions { width: 100%; justify-content: flex-start; }
    .btn-outline-pill { padding: 8px 16px; font-size: 0.85rem; }
    
    /* Adjust scrolled state for mobile */
    .main-header.scrolled .main-nav { background: var(--white); }
    .main-header.scrolled .nav-links a { color: var(--dark-blue); }
    .main-header.scrolled .dropdown li a { color: var(--dark-blue); }
    
    /* Hero Section */
    .hero-section { min-height: 80vh; }
    .hero-content { max-width: 100%; padding: 0 15px; transform: none; }
    .hero-content h1 { font-size: 2rem; margin-bottom: 15px; }
    .hero-content p { font-size: 1rem; margin-bottom: 30px; }
    .hero-buttons { flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
    .hero-buttons .btn { flex: 1; min-width: 150px; padding: 10px 16px; font-size: 0.9rem; }
    .hero-stats { gap: 20px; flex-direction: column; }
    .stat-item { gap: 10px; }
    .stat-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .stat-item h4 { font-size: 1.1rem; }
    
    /* Typography */
    .section-title h2 { font-size: 1.8rem; }
    .section-title p { font-size: 0.95rem; }
    .section-title { margin-bottom: 30px; }
    h1, h2, h3, h4, h5, h6 { line-height: 1.3; }
    
    /* About Section */
    .about-grid { gap: 30px; }
    .about-images { grid-template-columns: 1fr; gap: 15px; }
    .img-large { grid-column: span 1; height: 200px; }
    .img-small { height: 180px; }
    .about-content h2 { font-size: 1.8rem; }
    .about-content h5 { font-size: 0.85rem; }
    .about-content p { font-size: 0.95rem; margin-bottom: 20px; }
    .vision-mission { grid-template-columns: 1fr; gap: 15px; }
    .vm-card { padding: 20px; }
    .vm-card .icon { width: 40px; height: 40px; font-size: 1.3rem; margin-bottom: 10px; }
    
    /* Courses Section */
    .courses-grid, .events-grid { grid-template-columns: 1fr; }
    .course-card { margin-bottom: 20px; }
    .course-img { height: 180px; }
    .course-content { padding: 20px; }
    .course-content h3 { font-size: 1.15rem; }
    .course-content p { font-size: 0.85rem; }
    
    /* Life Section */
    .life-grid { gap: 30px; }
    .life-content h2 { font-size: 1.8rem; }
    .life-content p { font-size: 0.95rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .feature-item { text-align: center; }
    .feature-item .icon { font-size: 1.5rem; }
    .feature-item h5 { font-size: 0.85rem; }
    .life-slider-wrap img { height: 280px; }
    .btn-virtual-tour { width: 60px; height: 60px; right: -15px; font-size: 0.7rem; }
    
    /* Events Section */
    .events-header { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
    .events-header h2 { font-size: 1.8rem; margin-bottom: 15px; }
    .event-card { margin-bottom: 20px; }
    .event-img-wrap { height: 150px; }
    .event-content { padding: 15px; }
    .event-content h4 { font-size: 1rem; }
    .event-content p { font-size: 0.8rem; }
    
    /* News & Hospitals Section */
    .two-col-grid { gap: 30px; }
    .list-header h3 { font-size: 1.3rem; }
    .news-item { gap: 10px; padding: 12px 0; }
    .news-date { min-width: 55px; padding: 6px; }
    .news-date span { font-size: 0.9rem; }
    .news-date small { font-size: 0.65rem; }
    .news-text h5 { font-size: 0.95rem; }
    .news-text p { font-size: 0.8rem; }
    .hospital-item { gap: 10px; padding: 12px; margin-bottom: 12px; }
    .hospital-item img { width: 80px; height: 60px; }
    .hospital-text h5 { font-size: 0.95rem; }
    .hospital-text p { font-size: 0.75rem; }
    
    /* CTA Banner */
    .cta-banner { padding: 0; }
    .cta-inner { padding: 30px 15px 30px 0px; flex-direction: column; text-align: center; gap: 20px; }
    .cta-content h2 { font-size: 1.6rem; }
    .cta-content p { font-size: 0.95rem; }
    .cta-actions { flex-direction: column; gap: 10px; }
    .cta-actions .btn { width: 100%; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; margin-bottom: 30px; }
    .footer-col h4 { font-size: 1rem; margin-bottom: 15px; }
    .footer-col p { font-size: 0.85rem; }
    .footer-links a { font-size: 0.85rem; }
    .footer-links li { margin-bottom: 8px; }
    .footer-bottom { padding-top: 15px; font-size: 0.8rem; }
    .footer-bottom-links { flex-direction: column; gap: 10px; }
    .social-links { gap: 8px; }
    .social-links a { width: 32px; height: 32px; }
    
    /* Buttons */
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .btn-small { padding: 5px 12px; font-size: 0.8rem; }
    .courses-grid, .events-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* Extra small devices (480px and below) */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .section-padding { padding: 35px 0; }
    
    /* Header */
    .main-header .container { padding-left: 12px; padding-right: 12px; }
    .header-inner { padding: 8px 12px; }
    .logo { height: 35px; }
    .nav-links { font-size: 0.8rem; }
    .btn-outline-pill { padding: 6px 12px; font-size: 0.75rem; }
    
    /* Hero */
    .hero-section { min-height: 60vh; padding-top: 80px; }
    .hero-content h1 { font-size: 1.5rem; margin-bottom: 10px; }
    .hero-content p { font-size: 0.9rem; margin-bottom: 20px; }
    .hero-buttons { margin-bottom: 30px; }
    .hero-buttons .btn { min-width: 120px; padding: 8px 12px; font-size: 0.8rem; }
    .hero-stats { gap: 15px; }
    .stat-item { gap: 8px; }
    .stat-icon { width: 35px; height: 35px; font-size: 1rem; }
    .stat-item h4 { font-size: 0.95rem; }
    .stat-item span { font-size: 0.75rem; }
    
    /* Typography */
    .section-title h2 { font-size: 1.5rem; }
    .section-title p { font-size: 0.85rem; margin-top: 10px; }
    
    /* About */
    .about-images { grid-template-columns: 1fr; }
    .about-content h2 { font-size: 1.5rem; }
    .about-content p { font-size: 0.9rem; }
    .vision-mission { gap: 12px; }
    .vm-card { padding: 15px; }
    
    /* Course Cards */
    .course-img { height: 150px; }
    .course-content { padding: 15px; }
    .course-content h3 { font-size: 1rem; }
    .course-content p { font-size: 0.8rem; }
    .course-arrow { width: 30px; height: 30px; font-size: 0.9rem; }
    
    /* Life Section */
    .life-content .features-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }
    .feature-item .icon { font-size: 1.3rem; margin-bottom: 8px; }
    .life-slider-wrap img { height: 220px; }
    .btn-virtual-tour { width: 50px; height: 50px; right: -10px; font-size: 0.65rem; }
    
    /* Events */
    .event-img-wrap { height: 130px; }
    .event-content { padding: 12px; }
    .event-content h4 { font-size: 0.95rem; }
    
    /* News */
    .news-item { gap: 8px; padding: 10px 0; }
    .news-date { min-width: 50px; padding: 5px; }
    .news-text h5 { font-size: 0.9rem; }
    .news-text p { font-size: 0.75rem; }
    
    /* Hospital */
    .hospital-item { gap: 8px; padding: 10px; }
    .hospital-item img { width: 70px; height: 55px; }
    .hospital-item { flex-wrap: wrap; }
    .hospital-text { min-width: 0; }
    .hospital-item .btn-small { margin-left: auto; }
    
    /* CTA */
    .cta-inner { padding: 20px 12px; }
    .cta-content h2 { font-size: 1.3rem; }
    .cta-content p { font-size: 0.9rem; }
    
    /* Footer */
    .footer-grid { gap: 20px; }
    .footer-col h4 { font-size: 0.95rem; }
    .footer-col p { font-size: 0.8rem; }
    .footer-links a { font-size: 0.8rem; }
    .social-links a { width: 30px; height: 30px; font-size: 0.85rem; }
}
