/* =========================================================
   RAJASTHAN PUBLIC SENIOR SECONDARY SCHOOL
   MAIN STYLESHEET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #fffdf8;
    line-height: 1.6;
     overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: 1140px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}


/* =========================================================
   TOP NOTICE
========================================================= */

.top-notice {
    background: #5b1f2a;
    color: white;
    font-size: 13px;
}

.notice-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.notice-label {
    background: #8b6b35;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 11px;
}

.notice-text {
    padding-left: 18px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: #fffdf8;
    border-bottom: 1px solid #e5ddd1;
}

.header-inner {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-logo {
    width: 58px;
    height: 58px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #5b1f2a;
    color: #f1d58a;

    border: 2px solid #8b6b35;

    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-text h1 {
    color: #5b1f2a;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 750;
}

.brand-text p {
    color: #37634b;
    font-size: 13px;
    margin-top: 3px;
}

.header-info {
    display: flex;
    gap: 35px;
}

.header-info div {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.header-info span {
    color: #8b6b35;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.header-info strong {
    color: #5b1f2a;
    font-size: 14px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar {
    background: #37634b;
}

.nav-inner {
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: stretch;
}

.nav-links a {
    color: white;
    padding: 15px 23px;
    font-size: 13px;
    font-weight: 600;

    position: relative;

    transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: #2e523e;
}

.nav-links a.active::after {
    content: "";

    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 7px;

    height: 2px;
    background: #f1d58a;
}

.menu-toggle {
    display: none;

    background: transparent;
    border: 0;

    color: white;
    font-size: 23px;
    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 570px;

    position: relative;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(36, 45, 38, 0.88),
            rgba(36, 45, 38, 0.50),
            rgba(36, 45, 38, 0.20)
        ),
        linear-gradient(
            135deg,
            #37634b,
            #5b1f2a
        );
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(241, 213, 138, 0.16),
            transparent 30%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    color: white;
}

.eyebrow {
    color: #f1d58a;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.hero h2 {
    max-width: 720px;

    margin: 15px 0 18px;

    font-size: 57px;
    line-height: 1.08;
    font-weight: 500;
}

.hero h2 strong {
    color: #f1d58a;
    font-weight: 750;
}

.hero p {
    max-width: 590px;

    color: #eeeeee;

    font-size: 16px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 13px;

    margin-top: 30px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-block;

    padding: 13px 23px;

    font-size: 13px;
    font-weight: 700;

    transition: 0.25s ease;
}

.btn-primary {
    background: #f1d58a;
    color: #5b1f2a;
}

.btn-primary:hover {
    background: white;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.7);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #5b1f2a;
}

.btn-dark {
    background: #5b1f2a;
    color: white;
}

.btn-dark:hover {
    background: #37634b;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: #37634b;
}

.btn-light:hover {
    background: #f1d58a;
    color: #5b1f2a;
}

.btn-gold {
    background: #f1d58a;
    color: #5b1f2a;
}

.btn-gold:hover {
    background: white;
    transform: translateY(-2px);
}


/* =========================================================
   QUICK INFO
========================================================= */

.quick-info {
    background: white;
    border-bottom: 1px solid #e4dbce;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.quick-card {
    padding: 28px 23px;

    border-right: 1px solid #e4dbce;
}

.quick-card:first-child {
    border-left: 1px solid #e4dbce;
}

.quick-number {
    color: #8b6b35;

    font-size: 11px;
    font-weight: 800;
}

.quick-card h3 {
    color: #5b1f2a;

    font-size: 18px;
    margin: 5px 0;
}

.quick-card p {
    color: #777;
    font-size: 12px;
}


/* =========================================================
   COMMON SECTION STYLES
========================================================= */

.about-preview,
.academic-preview,
.facilities-preview,
.values-section {
    padding: 90px 0;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.section-label {
    color: #8b6b35;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.content-block h2,
.section-heading h2 {
    color: #5b1f2a;

    font-size: 38px;
    line-height: 1.2;

    margin: 10px 0 18px;
}

.content-block p {
    color: #666;

    font-size: 14px;
    line-height: 1.8;

    margin-bottom: 15px;
}

.section-heading {
    text-align: center;
    max-width: 650px;

    margin: 0 auto 42px;
}

.section-heading p {
    color: #777;
    font-size: 14px;
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.image-placeholder {
    min-height: 380px;

    background:
        linear-gradient(
            135deg,
            #e8e0d3,
            #d9cfbf
        );

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px solid #d4c8b8;
}

.image-placeholder div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-placeholder span {
    font-size: 50px;
    margin-bottom: 12px;
}

.image-placeholder strong {
    color: #5b1f2a;
    font-size: 16px;
}

.image-placeholder small {
    color: #777;
    font-size: 11px;
    margin-top: 4px;
}

.text-link {
    display: inline-block;

    color: #37634b;

    font-size: 13px;
    font-weight: 750;

    margin-top: 5px;
}

.text-link:hover {
    color: #5b1f2a;
}


/* =========================================================
   ACADEMIC PREVIEW
========================================================= */

.academic-preview {
    background: #f5f1e9;
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.academic-card {
    background: white;

    padding: 30px 23px;

    border: 1px solid #e1d8ca;

    transition: 0.25s ease;
}

.academic-card:hover {
    transform: translateY(-5px);
    border-color: #8b6b35;
}

.academic-card span {
    color: #8b6b35;

    font-size: 11px;
    font-weight: 800;
}

.academic-card h3 {
    color: #37634b;

    font-size: 18px;

    margin: 10px 0;
}

.academic-card p {
    color: #707070;

    font-size: 13px;
}

.center-button {
    text-align: center;
    margin-top: 35px;
}


/* =========================================================
   FACILITIES
========================================================= */

.facilities-preview {
    background: #37634b;
    color: white;
}

.facilities-preview .section-label {
    color: #f1d58a;
}

.facilities-preview .section-heading h2 {
    color: white;
}

.facilities-preview .section-heading p {
    color: #d9e0da;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.facility-card {
    padding: 32px 23px;

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.13);

    transition: 0.25s ease;
}

.facility-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-5px);
}

.facility-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.facility-card h3 {
    font-size: 17px;
    margin-bottom: 7px;
}

.facility-card p {
    color: #dce4de;
    font-size: 12px;
}


/* =========================================================
   VALUES
========================================================= */

.values-section {
    background: #fffdf8;
}

.values-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.values-list > div {
    padding: 25px;

    border: 1px solid #e1d8ca;
    margin: -1px 0 0 -1px;
}

.values-list span {
    display: block;

    color: #8b6b35;

    font-size: 10px;
    font-weight: 800;

    margin-bottom: 7px;
}

.values-list strong {
    color: #5b1f2a;
    font-size: 17px;
}

.values-list p {
    color: #707070;
    font-size: 12px;
    margin-top: 5px;
}


/* =========================================================
   ADMISSION CTA
========================================================= */

.admission-cta {
    padding: 75px 20px;

    background: #5b1f2a;

    text-align: center;
    color: white;
}

.admission-cta > div {
    max-width: 700px;
}

.admission-cta span {
    color: #f1d58a;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.admission-cta h2 {
    font-size: 36px;
    margin: 10px 0;
}

.admission-cta p {
    color: #eeeeee;

    font-size: 14px;

    margin-bottom: 25px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #242c27;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;

    padding: 60px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-brand .school-logo {
    width: 45px;
    height: 45px;
    font-size: 14px;
}

.footer-brand h3 {
    font-size: 15px;
    line-height: 1.3;
}

.footer-brand p,
.footer-description {
    color: #bfc7c1;
    font-size: 12px;
}

.footer-description {
    max-width: 430px;
    margin-top: 20px;
}

.site-footer h4 {
    color: #f1d58a;

    font-size: 12px;
    letter-spacing: 1px;

    margin-bottom: 15px;
}

.site-footer a,
.site-footer > .footer-grid p {
    display: block;

    color: #c9d0cb;

    font-size: 12px;

    margin-bottom: 8px;
}

.site-footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);

    padding: 17px 0;

    color: #9ea7a0;
    font-size: 11px;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
    position: fixed;

    right: 22px;
    bottom: 22px;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    background: #5b1f2a;
    color: white;

    font-size: 20px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: 0.25s;

    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .container {
        max-width: calc(100% - 30px);
    }

    .header-info {
        display: none;
    }

    .header-inner {
        min-height: 82px;
    }

    .brand-text h1 {
        font-size: 15px;
    }

    .brand-text p {
        font-size: 10px;
    }

    .school-logo {
        width: 48px;
        height: 48px;
        font-size: 15px;
    }

    .nav-inner {
        min-height: 48px;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        padding: 10px;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
    }

    .nav-links.menu-open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 13px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .hero {
        min-height: 540px;
        padding: 70px 0;
    }

    .hero h2 {
        font-size: 37px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        max-width: 280px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .quick-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-card {
        border-bottom: 1px solid #e4dbce;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-preview,
    .academic-preview,
    .facilities-preview,
    .values-section {
        padding: 65px 0;
    }

    .content-block h2,
    .section-heading h2 {
        font-size: 31px;
    }

    .academic-grid,
    .facility-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

}


@media (max-width: 500px) {

    .top-notice {
        font-size: 11px;
    }

    .notice-label {
        padding: 0 12px;
        font-size: 9px;
    }

    .notice-text {
        padding-left: 10px;
    }

    .header-inner {
        padding: 10px 0;
    }

    .brand {
        gap: 10px;
    }

    .brand-text h1 {
        font-size: 14px;
    }

    .brand-text p {
        font-size: 9px;
    }

    .hero {
        min-height: 500px;
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 32px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .quick-card {
        border-left: 0;
        border-right: 0;
    }

    .academic-grid,
    .facility-grid,
    .values-list {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        min-height: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .admission-cta h2 {
        font-size: 29px;
    }

}
@media (max-width: 500px) {

    .admission-cta {
        width: 100%;
        padding: 60px 20px;
        overflow: hidden;
    }

    .admission-cta h2 {
        font-size: 28px;
        line-height: 1.25;
    }

    .admission-cta p {
        font-size: 13px;
        line-height: 1.6;
    }

    .admission-cta .btn {
        display: inline-block;
        max-width: 100%;
    }

}
@media (max-width: 800px) {

    .admission-cta {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

}
 @media (max-width: 500px) {

    .header-inner {
        min-height: 76px;
    }

    .brand-text h1 {
        font-size: 13px;
        line-height: 1.25;
    }

    .brand-text p {
        font-size: 9px;
    }

    .school-logo {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

}
/* ================================
   ABOUT PAGE
================================ */

.inner-hero {
    background: #173b35;
    color: #fff;
    padding: 90px 0;
}

.inner-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.eyebrow,
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #b89555;
    margin-bottom: 18px;
}

.inner-hero h2 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 25px;
}

.inner-hero h2 strong {
    color: #d2b16d;
}

.inner-hero p {
    max-width: 570px;
    font-size: 17px;
    color: #d8e0dc;
}

.hero-number {
    font-size: 12px;
    letter-spacing: 3px;
    color: #b89555;
}

.hero-number span {
    display: block;
    font-size: 60px;
    color: rgba(255,255,255,0.15);
    letter-spacing: 0;
}


/* STORY */

.about-story {
    padding: 110px 0;
    background: #fffdf8;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 80px;
    align-items: center;
}

.story-image {
    position: relative;
}

.image-placeholder {
    min-height: 430px;
    background: #e9e4d9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.image-placeholder div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-placeholder span {
    font-size: 45px;
}

.image-placeholder strong {
    font-size: 17px;
}

.image-placeholder small {
    color: #777;
}

.image-caption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #d8d2c5;
    font-size: 11px;
    letter-spacing: 1px;
}

.image-caption span {
    color: #777;
}

.story-content h2,
.vision-intro h2,
.principal-content h2 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.05;
    color: #173b35;
    margin-bottom: 28px;
}

.story-content h2 em,
.vision-intro h2 em,
.principal-content h2 em {
    color: #9a753c;
    font-style: normal;
}

.story-content p {
    color: #666;
    margin-bottom: 18px;
    font-size: 16px;
}

.story-content .lead {
    font-size: 19px;
    color: #3f3f3f;
}

.story-line {
    width: 60px;
    height: 3px;
    background: #b89555;
    margin: 30px 0;
}

.small-note {
    font-size: 13px !important;
    color: #888 !important;
}


/* STATS */

.about-stats {
    background: #173b35;
    color: white;
    padding: 45px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 10px 30px;
    border-right: 1px solid rgba(255,255,255,0.18);
}

.stat:last-child {
    border-right: none;
}

.stat strong {
    display: block;
    font-size: 27px;
    color: #d2b16d;
    margin-bottom: 5px;
}

.stat span {
    font-size: 12px;
    color: #cbd4d0;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* VISION */

.vision-modern {
    padding: 110px 0;
    background: #f2eee5;
}

.vision-modern-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.vision-intro p {
    color: #666;
    max-width: 400px;
}

.vision-cards {
    border-top: 1px solid #cfc8b9;
}

.vision-modern-card {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 25px;
    padding: 28px 0;
    border-bottom: 1px solid #cfc8b9;
}

.vision-modern-card > span {
    color: #9a753c;
    font-weight: 700;
    font-size: 13px;
}

.vision-modern-card h3 {
    color: #173b35;
    font-size: 22px;
    margin-bottom: 8px;
}

.vision-modern-card p {
    color: #666;
    font-size: 14px;
    max-width: 500px;
}


/* PRINCIPAL */

.principal-modern {
    padding: 110px 0;
    background: #fffdf8;
}

.principal-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
    align-items: center;
}

.principal-photo .image-placeholder {
    min-height: 480px;
}

.quote-mark {
    font-size: 70px;
    line-height: 0.7;
    color: #b89555;
    margin: 35px 0 15px;
}

.principal-content p {
    color: #555;
    font-size: 18px;
    max-width: 600px;
}

.principal-signature {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
}

.principal-signature strong {
    color: #173b35;
    font-size: 17px;
}

.principal-signature span {
    color: #888;
    font-size: 12px;
}


/* ABOUT MOBILE */

@media (max-width: 800px) {

    .inner-hero {
        padding: 65px 20px;
    }

    .inner-hero-content {
        display: block;
    }

    .inner-hero h2 {
        font-size: 43px;
    }

    .hero-number {
        margin-top: 35px;
    }

    .story-grid,
    .vision-modern-grid,
    .principal-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-story,
    .vision-modern,
    .principal-modern {
        padding: 70px 20px;
    }

    .image-placeholder {
        min-height: 300px;
    }

    .principal-photo .image-placeholder {
        min-height: 330px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.18);
    }

    .stat:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,0.18);
    }

    .image-caption {
        display: block;
    }

    .image-caption strong {
        display: block;
        margin-top: 5px;
    }

}
/* Admissions CTA alignment fix */
.admission-cta {
    width: 100%;
    text-align: center;
}

.admission-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 20px;
}
.school-logo {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
/* Logo + school name alignment */
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-text h1 {
    margin: 0;
}

.brand-text p {
    margin: 4px 0 0;
}
/* FINAL HEADER LOGO FIX */

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-header .school-logo {
    width: 70px;
    height: 70px;
    min-width: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .school-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Founder photo presentation */
.about-preview .large-placeholder {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-preview .large-placeholder img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.gallery-feature {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
}

.gallery-feature img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   PROFESSIONAL GALLERY
   ========================= */

.gallery-feature {
    margin-top: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.gallery-feature img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 30px;
}


.gallery-item {
    height: 240px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}


.gallery-item:hover img {
    transform: scale(1.05);
}


/* Results look slightly larger */
.gallery-grid .gallery-item img[alt*="Result"] {
    object-fit: contain;
    background: #fff;
}


/* Mobile */
@media (max-width: 800px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 500px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-feature img {
        height: 280px;
    }

    .gallery-item {
        height: 230px;
    }

}
@media (max-width: 768px) {

    .two-column {
        display: flex;
        flex-direction: column;
    }

    .two-column > * {
        width: 100%;
    }

    .two-column .large-placeholder {
        width: 100%;
    }

    .two-column .large-placeholder img {
        width: 100%;
        height: 350px;
        object-fit: cover;
    }

}
/* =========================================================
   FINAL MOBILE FIX - ABOUT PAGE
========================================================= */

@media (max-width: 800px) {

    .principal-modern,
    .about-preview,
    .values-section {
        width: 100%;
        overflow: hidden;
    }

    .principal-modern .two-column,
    .values-section .two-column,
    .about-preview .two-column,
    .principal-grid,
    .story-grid,
    .vision-modern-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 35px !important;
    }

    .principal-modern .two-column > *,
    .values-section .two-column > *,
    .about-preview .two-column > *,
    .principal-grid > *,
    .story-grid > *,
    .vision-modern-grid > * {
        width: 100% !important;
        max-width: 100% !important;
    }

    .principal-modern .image-placeholder,
    .values-section .image-placeholder,
    .about-preview .image-placeholder {
        width: 100% !important;
        max-width: 100% !important;
    }

    .principal-modern .image-placeholder img,
    .values-section .image-placeholder img,
    .about-preview .image-placeholder img {
        width: 100% !important;
        max-width: 100% !important;
        height: 350px !important;
        object-fit: cover;
        display: block;
    }

    .principal-content {
        width: 100% !important;
    }
}
@media (max-width: 800px) {

    /* Prevent accidental text/content from appearing */
    body {
        overflow-x: hidden;
    }

    /* Mobile navigation */
    .navbar {
        width: 100%;
    }

    .nav-inner {
        width: 100%;
        max-width: 100%;
    }

    /* Force principal section vertical */
    .values-section .two-column {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .values-section .two-column > * {
        width: 100% !important;
        max-width: 100% !important;
    }

    .values-section .large-placeholder {
        width: 100% !important;
        height: auto !important;
    }

    .values-section .large-placeholder img {
        width: 100% !important;
        height: 350px !important;
        object-fit: cover !important;
    }
}
