/*
Theme Name: Jijamata College
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: A custom theme for Jijamata College of Nursing.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jijamata
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
    --primary-color: #0A192F;
    --secondary-color: #10B981;
    --bg-color: #FAFAFA;
    --bg-color-alt: #FFFFFF;
    --text-main: #333333;
    --text-light: #555555;
    --text-white: #FFFFFF;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Glassmorphism Utility */
.glassmorphism {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
}

.glassmorphism-dark {
    backdrop-filter: blur(12px);
    background: rgba(10, 25, 47, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.transparent {
    background: transparent;
    color: var(--text-white);
}

/* When not overlaying a dark hero (for non-home pages), default state might need tweaking. 
   We will keep it 'transparent' but maybe change text color if background is light. 
   Assuming all pages have a hero banner or dark top. */

.navbar.scrolled {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 5%;
    color: var(--primary-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--secondary-color);
}

.navbar .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    color: inherit;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #0e9f6e;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 10002;
    /* Must be higher than the overlay */
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.navbar.transparent .menu-toggle .bar {
    background-color: var(--text-white);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--text-white);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--text-white);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 4rem 5% 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    display: block;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Layout Utilities */
section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: -2rem auto 4rem auto;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/images/images/hero-campus-cropped.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: flex-end;
    padding: 0 5% 6rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.5) 50%, rgba(10, 25, 47, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 700px;
}

/* Button Outline */
.btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Introduction Section */
.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-light);
}

.intro-images {
    position: relative;
    height: 500px;
}

.intro-images img {
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.img-main {
    width: 80%;
    height: 80%;
    position: absolute;
    top: 0;
    right: 0;
}

.img-sub {
    width: 60%;
    height: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
    border: 5px solid var(--bg-color);
}

/* 5 Column Highlights */
.bg-light {
    background-color: var(--bg-color-alt);
}

.five-column-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.glass-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    cursor: default;
}

.glass-card:hover {
    transform: scale(1.02);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.glass-card:hover .card-bg {
    transform: scale(1.1);
}

.card-content {
    position: relative;
    z-index: 2;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    width: 100%;
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.glass-card:hover .card-content {
    transform: translateY(0);
    opacity: 1;
    background: rgba(16, 185, 129, 0.9);
}

.card-content h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Editorial Split */
.editorial-split {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.editorial-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.editorial-block.reverse {
    direction: rtl;
}

.editorial-block.reverse>* {
    direction: ltr;
}

.editorial-img {
    border-radius: var(--radius);
    overflow: hidden;
    height: 500px;
}

.editorial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.editorial-block:hover .editorial-img img {
    transform: scale(1.03);
}

.editorial-content h3 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.editorial-content .role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.editorial-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
}

.mission-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mission-list li {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mission-list li::before {
    content: '→';
    color: var(--secondary-color);
    font-weight: bold;
}

/* Accordion */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-color-alt);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.accordion-btn {
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.accordion-item.active .accordion-btn {
    background: var(--primary-color);
    color: var(--text-white);
}

.accordion-btn:hover {
    background: rgba(10, 25, 47, 0.05);
}

.accordion-item.active .accordion-btn:hover {
    background: var(--primary-color);
}

.accordion-content {
    display: none;
    padding: 2rem;
    font-size: 1.05rem;
    color: var(--text-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.icon {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Programs Grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background: var(--bg-color-alt);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.program-img {
    height: 250px;
    overflow: hidden;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-img img {
    transform: scale(1.05);
}

.program-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.program-content .duration {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.program-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.program-content .btn-outline {
    margin-top: auto;
    align-self: flex-start;
}

/* Text Center Utility */
.text-center {
    text-align: center;
    width: 100%;
}

/* Banner Callout */
.banner-callout {
    position: relative;
    padding: 8rem 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 4rem;
    color: var(--text-white);
}

.banner-content h2 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.banner-content p {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* Bento Grid Section */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: default;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bento-item:hover img {
    transform: scale(1.08);
}

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--text-white);
    transition: all 0.4s ease;
}

.bento-item h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.bento-item p {
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    line-height: 1.5;
}

.bento-item:hover .bento-overlay {
    background: rgba(10, 25, 47, 0.85);
    /* Darker on hover */
    backdrop-filter: blur(4px);
}

.bento-item:hover h3,
.bento-item:hover p {
    transform: translateY(0);
    opacity: 1;
}

.bento-item:hover h3 {
    color: var(--secondary-color);
}

/* Specific Grid Spans for the Bento Look */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}


/* Carousel */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    cursor: grab;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track.active {
    cursor: grabbing;
}

.carousel-slide {
    min-width: 350px;
    height: 450px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    padding: 1.5rem;
    color: var(--text-white);
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.carousel-slide:hover .slide-content {
    background: rgba(16, 185, 129, 0.9);
    /* Emerald on hover */
    transform: translateY(0);
}

.slide-content h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.slide-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-white);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

/* Staffing Hierarchy */
.hierarchy-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hierarchy-card {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    border-radius: var(--radius);
    color: var(--text-white);
    transition: transform 0.3s ease;
}

.hierarchy-card:hover {
    transform: translateY(-10px);
}

.hierarchy-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.hierarchy-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hierarchy-list li {
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem;
    opacity: 0.9;
}

.hierarchy-list li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

/* Interactive Timeline */
.dmlt-curriculum {
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(10, 25, 47, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    background-color: inherit;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border: 4px solid var(--bg-color-alt);
    border-radius: 50%;
    z-index: 10;
    left: 50%;
    margin-left: -10px;
}

.timeline-content,
.timeline-image {
    width: 45%;
    border-radius: var(--radius);
    overflow: hidden;
}

.timeline-content {
    background: var(--bg-color-alt);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.timeline-image {
    height: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-image {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-image.visible {
    opacity: 1;
    transform: scale(1);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding: 3rem;
    color: var(--text-white);
}

.contact-info h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-block {
    margin-top: 2.5rem;
}

.info-block h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-block p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.contact-form-wrapper {
    background: var(--bg-color-alt);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Pages Global Styles (About Us & Inner Pages) */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-card {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 3.5rem;
    color: var(--text-white);
    text-align: center;
    margin: 0 5%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.philosophy-card h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.philosophy-card p {
    font-size: 1.15rem;
    opacity: 0.95;
    line-height: 1.8;
}

.vision-mission {
    background: linear-gradient(135deg, var(--primary-color) 0%, #112240 100%);
    padding: 6rem 5%;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.vm-box {
    padding: 3.5rem;
    color: var(--text-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.vm-box:hover {
    transform: translateY(-10px);
}

.vm-box h2 {
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.vision-box p {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.mission-box .mission-list li {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    align-items: flex-start;
}

.mission-box .mission-list li::before {
    margin-top: 5px;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .five-column-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .intro-container {
        grid-template-columns: 1fr;
    }

    .intro-images {
        height: 400px;
        order: -1;
    }

    .editorial-block,
    .editorial-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }

    .vm-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
        /* Adjust to not be too tall */
    }

    .bento-tall {
        grid-row: span 1;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
        padding-right: 20px;
        gap: 1.5rem;
    }

    .timeline-dot {
        left: 31px;
        margin-left: -10px;
        top: 2rem;
    }

    .timeline-content,
    .timeline-image {
        width: 100%;
    }

    .timeline-image {
        order: 2;
        /* Ensure image is below text on mobile */
    }

    .timeline-content {
        order: 1;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* Prevent vertical centering from cutting off top items on small screens */
        padding-top: 6rem;
        /* Make room for the logo and close button */
        overflow-y: auto;
        /* Allow scrolling if there are many links */
        transition: right 0.4s ease;
        z-index: 10000;
        margin: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.2rem 0;
    }

    .nav-links a {
        color: var(--text-white);
        font-size: 1.5rem;
    }

    .navbar .logo {
        position: relative;
        z-index: 10001;
    }

    .navbar .btn-primary {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 4rem 5%;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-top: 3rem;
        /* push down past the logo/hamburger */
    }

    .five-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .philosophy-card {
        padding: 2rem;
        margin-top: 4rem;
        /* Ensure card is pushed down below the header */
    }

    .page-hero {
        padding-top: 5rem;
        /* Stop text overlapping the fixed navbar */
        height: auto;
        min-height: 50vh;
        padding-bottom: 2rem;
    }

    .philosophy-card h1 {
        font-size: 2rem;
    }

    .vm-box {
        padding: 2.5rem;
    }

    .banner-content {
        padding: 2.5rem 1.5rem;
    }

    .banner-content h2 {
        font-size: 2rem;
    }

    .carousel-slide {
        min-width: 280px;
        height: 400px;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 500px) {
    .five-column-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .bento-large,
    .bento-tall,
    .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-item h3 {
        transform: translateY(0);
    }

    .bento-item p {
        transform: translateY(0);
        opacity: 0.9;
    }
}
