/* Seven Academy - Main Styles */

:root {
    /* Colors */
    --navy-primary: #1a2b4a;
    --navy-dark: #0f1a2e;
    --navy-light: #2c426b;
    --gold-primary: #f5a623;
    --gold-light: #ffbf57;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-grey: #e9ecef;
    --dark-grey: #2d3748;
    --text-color: #2d3748;
    --text-light: #718096;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 80px;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

section {
    scroll-margin-top: var(--header-height);
}

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

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

h1.text-white,
h2.text-white,
h3.text-white,
h4.text-white,
h5.text-white,
h6.text-white {
    color: var(--white) !important;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

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

.text-gold {
    color: var(--gold-primary);
}

.text-white {
    color: var(--white) !important;
}

.text-light-grey {
    color: var(--light-grey);
}

.bg-navy {
    background-color: var(--navy-primary);
}

.bg-light {
    background-color: var(--white);
}

.bg-off-white {
    background-color: var(--off-white);
}

.bg-gold {
    background-color: var(--gold-primary);
}

/* Orange background sections: Navy blue titles, white text, navy blue icons */
.bg-gold h1,
.bg-gold h2,
.bg-gold h3,
.bg-gold h4,
.bg-gold h5,
.bg-gold h6,
.bg-gold .section-title {
    color: var(--navy-primary) !important;
}

.bg-gold p,
.bg-gold .lead {
    color: var(--white);
}

.bg-gold .feature-list li {
    color: var(--white);
}

.bg-gold .feature-list i,
.bg-gold i {
    color: var(--navy-primary) !important;
}

.bg-gold .resource-item {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--navy-primary);
    width: 200px;
    height: 166.4px;
}

.bg-gold .resource-item i {
    color: var(--navy-primary);
}

.bg-gold .resource-item span {
    color: var(--navy-primary);
}

/* Feature item heading styles */
.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

/* Resource items - consistent sizing */
.resource-item {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    width: 200px;
    height: 166.4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.resource-item i {
    font-size: 2rem;
}

.resource-item span {
    font-weight: 500;
}

/* Page hero fix for fixed header */
.page-hero {
    margin-top: var(--header-height);
}

/* Hero section fix - ensure full viewport height minus header */
.hero-section {
    margin-top: 0;
    padding-top: var(--header-height);
}

.section-padding {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--gold-primary);
    color: var(--navy-primary);
}

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--navy-primary);
    color: var(--navy-primary);
}

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

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    /* Override default margin if any */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    /* Fallback gradient */
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%), url('assets/hero.png');
    background-blend-mode: overlay;
}

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

.hero-background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 43, 74, 0.9), rgba(26, 43, 74, 0.6));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Smart Search */
.smart-search-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.smart-search-bar {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.smart-search-bar input {
    flex: 1;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-body);
}

.btn-search {
    background: var(--navy-primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--gold-primary);
}

.search-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--gold-primary);
    color: var(--navy-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    margin-top: 0.5rem;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Audience Section */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.audience-card {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow-md);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

/* Fallback backgrounds */
/* Fallback backgrounds */
.teachers-bg {
    background-image: linear-gradient(to top, rgba(26, 43, 74, 0.8), rgba(26, 43, 74, 0.2)), url('assets/teachers.png');
}

.schools-bg {
    background-image: linear-gradient(to top, rgba(26, 43, 74, 0.8), rgba(26, 43, 74, 0.2)), url('assets/schools.png');
}

.students-bg {
    background-image: linear-gradient(to top, rgba(26, 43, 74, 0.8), rgba(26, 43, 74, 0.2)), url('assets/students.png');
}

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

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(26, 43, 74, 0.95), rgba(26, 43, 74, 0));
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.audience-card:hover .card-content {
    transform: translateY(0);
}

.card-icon {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.card-content h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.link-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-primary);
    font-weight: 600;
    margin-top: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.audience-card:hover .link-text {
    opacity: 1;
}

/* Detail Sections */
.row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.row.align-center {
    align-items: center;
}

.col-text,
.col-image {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(26, 43, 74, 0.1);
    color: var(--navy-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
}

.floating-card {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.floating-card.right {
    left: auto;
    right: -2rem;
}

.floating-card i {
    font-size: 2rem;
    color: var(--gold-primary);
}

.floating-card strong {
    display: block;
    font-size: 1.2rem;
    color: var(--navy-primary);
}

.floating-card span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 1rem;
}

.programme-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    color: var(--text-color);
    display: flex;
    height: 300px;
}

.prog-image {
    width: 40%;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    /* Light fallback */
}

.prog-content {
    width: 60%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prog-icon {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.carousel-btn {
    background: var(--gold-primary);
    border: none;
    color: var(--navy-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.6rem 0.8rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--white);
    color: var(--navy-primary);
    transform: scale(1.1);
}

/* Hide the absolute positioned buttons - we'll use the nav bar ones */
.carousel-container .carousel-btn.prev,
.carousel-container .carousel-btn.next {
    position: static;
    transform: none;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: rgba(245, 166, 35, 0.5);
}

.carousel-indicator.current-slide {
    background: var(--gold-primary);
    width: 12px;
    height: 12px;
}

/* Insights */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--navy-primary);
    border: 1px solid var(--navy-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
    color: var(--white);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gold-primary);
    color: var(--navy-primary);
    border-color: var(--gold-primary);
}

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

.insight-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.insight-card.card-gold {
    background: var(--gold-primary);
}

.insight-card.card-gold .insight-content {
    background: var(--gold-primary);
}

.insight-card.card-gold .insight-content h3 {
    color: var(--navy-primary);
}

.insight-card.card-gold .insight-content p {
    color: var(--white);
}

.insight-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.insight-content {
    padding: 1.5rem;
}

.category-tag {
    font-size: 0.8rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--navy-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--navy-primary);
}

.full-width {
    width: 100%;
}

/* Footer */
.main-footer {
    padding: 4rem 0 2rem;
}

/* New Page Styles */

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Features Grid (Home) */
.section-padding-sm {
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item {
    padding: 1rem;
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Why Us Grid */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

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

.why-item i {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    display: block;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Page Heroes */
.page-hero {
    position: relative;
    height: auto;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
    box-sizing: border-box;
}

.teachers-hero {
    background-image: linear-gradient(rgba(26, 43, 74, 0.8), rgba(26, 43, 74, 0.8)), url('assets/teachers.png');
}

.schools-hero {
    background-image: linear-gradient(rgba(26, 43, 74, 0.8), rgba(26, 43, 74, 0.8)), url('newassets/ukcampus.png');
}

.students-hero {
    background-image: linear-gradient(rgba(26, 43, 74, 0.8), rgba(26, 43, 74, 0.8)), url('assets/students.png');
}

.about-hero {
    background-image: linear-gradient(rgba(26, 43, 74, 0.8), rgba(26, 43, 74, 0.8)), url('newassets/londonview.png');
}

.insights-hero {
    background-image: linear-gradient(rgba(26, 43, 74, 0.8), rgba(26, 43, 74, 0.8)), url('assets/insights_hero.png');
}

.partners-hero {
    background-image: linear-gradient(rgba(26, 43, 74, 0.8), rgba(26, 43, 74, 0.8)), url('newassets/partners_hero.png');
}

.contact-hero {
    background-image: linear-gradient(rgba(26, 43, 74, 0.8), rgba(26, 43, 74, 0.8)), url('assets/hero.png');
}

.gallery-hero {
    background: linear-gradient(rgba(26, 43, 74, 0.8), rgba(26, 43, 74, 0.75)), url('assets/gallery_hero.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

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

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

/* Cards */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.card h3,
.card h4 {
    margin-bottom: 1rem;
    color: var(--navy-primary);
}

.card.bg-navy {
    background: var(--navy-primary);
    color: var(--white);
}

.card.bg-navy h3,
.card.bg-navy h4 {
    color: var(--white);
}

.card.bg-navy-light {
    background: var(--navy-light);
    color: var(--white);
}

.card.card-gold {
    background: var(--gold-primary);
    border: 2px solid var(--navy-primary);
}

.card.card-gold h3,
.card.card-gold h4 {
    color: var(--navy-primary);
}

.card.card-gold p {
    color: var(--navy-primary);
}

.card.bg-navy-light h3 {
    color: var(--white);
}

.card.border-gold {
    border: 3px solid var(--gold-primary) !important;
}

.card.border-navy {
    border: 3px solid var(--navy-primary) !important;
}

/* Cards on navy background */
.bg-navy .card {
    background: var(--white);
    border: 3px solid var(--gold-primary) !important;
}

/* Cards on gold/orange background - text should be navy blue */
.bg-gold .card {
    background: var(--white);
    border: 3px solid var(--navy-primary) !important;
}

.bg-gold .card p,
.bg-gold .card h3,
.bg-gold .card h4,
.bg-gold .card span {
    color: var(--navy-primary) !important;
}

/* Exception: keep .text-gold elements gold inside cards on gold backgrounds */
.bg-gold .card .text-gold {
    color: var(--gold-primary) !important;
}

.bg-navy .card h3,
.bg-navy .card h4 {
    color: var(--navy-primary);
}

.bg-navy .card p {
    color: var(--navy-primary);
}

/* Icons */
.icon-lg {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.icon-md {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Utilities */
.mb-2 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.text-sm {
    font-size: 0.9rem;
}

.uppercase {
    text-transform: uppercase;
}

.font-bold {
    font-weight: 700;
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

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

.gap-2 {
    gap: 2rem;
}

/* Resources */
.resource-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    width: 200px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.resource-item:hover {
    transform: translateY(-5px);
    color: var(--gold-primary);
}

.resource-item i {
    font-size: 2.5rem;
    color: var(--navy-primary);
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--light-grey);
    border-radius: 4px;
}

/* Social Links */
.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    margin-bottom: 1rem;
}

/* Placeholder Images */
.placeholder-img {
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-weight: bold;
}

/* Required field indicator */
.required {
    color: #e53e3e;
    font-weight: 700;
}

/* Form feedback messages */
.form-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.form-message i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Button loading state */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Button outline variant */
.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Dropdown Menu */
.nav-links {
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    /* Align to right of parent */
    background: var(--white);
    min-width: 180px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

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

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--navy-primary);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--off-white);
    color: var(--gold-primary);
}

.dropdown-menu a::after {
    display: none;
    /* Remove underline effect for dropdown items */
}

/* Logo Image */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Fix for recruitment image if needed */
.recruitment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

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

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    font-size: 1.5rem;
}

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

/* AI Widget */
.seven-ai-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.ai-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--navy-primary);
    color: var(--white);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--gold-primary);
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: var(--transition);
}

.ai-chat-window.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.ai-header {
    background: var(--navy-primary);
    color: var(--white);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.close-ai {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
}

.ai-messages {
    flex: 1;
    padding: 1rem;
    background: var(--off-white);
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.ai-message {
    background: var(--white);
    border-top-left-radius: 0;
    box-shadow: var(--shadow-sm);
}

.ai-input {
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid var(--light-grey);
    display: flex;
    gap: 0.5rem;
}

.ai-input input {
    flex: 1;
    border: 1px solid var(--light-grey);
    padding: 0.5rem;
    border-radius: 4px;
    outline: none;
}

.ai-input button {
    background: var(--navy-primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .row {
        flex-direction: column;
    }

    .row.reverse-mobile {
        flex-direction: column-reverse;
    }

    .floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -1rem;
        width: 80%;
    }

    .floating-card.right {
        right: auto;
        left: 50%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand,
    .footer-links,
    .footer-social {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .programme-card {
        flex-direction: column;
        height: auto;
    }

    .prog-image {
        width: 100%;
        height: 200px;
    }

    .prog-content {
        width: 100%;
    }

    /* Newsletter form mobile */
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-form input {
        width: 100%;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    /* Form improvements mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .form-message {
        flex-direction: column;
        text-align: center;
    }

    /* Resource items mobile */
    .flex-center.gap-2 {
        flex-direction: column;
    }

    .resource-item {
        width: 100%;
        max-width: 280px;
    }

    /* Section padding mobile */
    .section-padding {
        padding: 3rem 0;
    }

    /* Page hero mobile */
    .page-hero {
        height: 50vh;
        min-height: 300px;
        background-size: cover;
        background-position: center;
    }

    /* Gallery hero mobile - ensure background fills */
    .gallery-hero {
        background-size: cover;
        background-position: center top;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy-primary);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-links {
    text-align: center;
}

.mobile-nav-links li {
    margin: 1.5rem 0;
}

.mobile-nav-links a {
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* Gallery Page Styles - Photo Album Aesthetic */
.gallery-hero {
    background-image: linear-gradient(rgba(26, 43, 74, 0.85), rgba(26, 43, 74, 0.85)), url('final/1.png');
    background-size: cover;
    background-position: center;
}

/* Gallery Section Background - Textured paper look */
.gallery-section {
    background: linear-gradient(135deg, #f5f0e8 0%, #ebe6de 50%, #f0ebe3 100%);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding: 1rem;
}

/* Polaroid-style photo frames */
.gallery-item {
    position: relative;
    cursor: pointer;
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    padding: 12px 12px 45px 12px;
    border-radius: 3px;
    aspect-ratio: 1 / 1.15;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
}

/* Subtle random rotations for album feel */
.gallery-item:nth-child(4n+1) {
    transform: rotate(-1.5deg);
}

.gallery-item:nth-child(4n+2) {
    transform: rotate(1deg);
}

.gallery-item:nth-child(4n+3) {
    transform: rotate(-0.5deg);
}

.gallery-item:nth-child(4n+4) {
    transform: rotate(2deg);
}

/* Photo frame inner shadow */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 45px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 1;
}

/* Decorative tape effect */
.gallery-item::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 25px;
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.7) 0%, rgba(245, 166, 35, 0.5) 100%);
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

/* Alternate tape styles */
.gallery-item:nth-child(3n+2)::after {
    background: linear-gradient(180deg, rgba(26, 43, 74, 0.6) 0%, rgba(26, 43, 74, 0.4) 100%);
    transform: translateX(-50%) rotate(3deg);
}

.gallery-item:nth-child(5n+3)::after {
    width: 50px;
    transform: translateX(-30%) rotate(-5deg);
}

.gallery-item:hover {
    transform: rotate(0deg) scale(1.05) translateY(-10px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.gallery-item .photo-wrapper {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 45px;
    overflow: hidden;
    border-radius: 2px;
    background: #e0e0e0;
}

.gallery-item .photo-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: saturate(0.95) contrast(1.02);
}

.gallery-item:hover .photo-wrapper img {
    transform: scale(1.08);
    filter: saturate(1.1) contrast(1.05);
}

/* Caption area */
.gallery-caption {
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.gallery-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 45px;
    background: linear-gradient(to top, rgba(26, 43, 74, 0.9) 0%, rgba(26, 43, 74, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 2px;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.5rem;
    color: var(--gold-primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Gallery Lightbox - Enhanced */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 26, 46, 0.98);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(10px);
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 4px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: lightboxIn 0.4s ease;
}

@keyframes lightboxIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.15);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(245, 166, 35, 0.2);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold-primary);
    color: var(--navy-primary);
    transform: scale(1.1);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Image counter */
.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Gallery Responsive */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-item {
        padding: 8px 8px 35px 8px;
    }

    .gallery-item .photo-wrapper {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 35px;
    }

    .gallery-item::after {
        width: 45px;
        height: 20px;
        top: -6px;
    }

    .gallery-overlay {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 35px;
    }

    .gallery-item::before {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 35px;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 0.75rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-content {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 320px;
        margin: 0 auto;
    }
}