/* =============================================================
   APS PU COLLEGE OF SCIENCE & COMMERCE
   COMMON PUBLIC WEBSITE DESIGN
   ============================================================= */


/* =============================================================
   VARIABLES
============================================================= */

:root {

    --navy: #082746;
    --navy-dark: #051d35;
    --navy-light: #103f72;

    --blue: #174f8f;
    --blue-light: #2864a7;

    --gold: #f7b814;
    --gold-dark: #d99a00;
    --gold-light: #ffca3a;

    --white: #ffffff;

    --off-white: #f8fafc;
    --light: #f2f6fa;

    --text: #1f2d3d;
    --muted: #687789;

    --border: #e4eaf0;

    --shadow-sm:
        0 8px 25px rgba(8,39,70,.08);

    --shadow-md:
        0 18px 50px rgba(8,39,70,.12);

    --shadow-lg:
        0 28px 80px rgba(8,39,70,.18);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 26px;

}


/* =============================================================
   RESET
============================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        'DM Sans',
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.7;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;

}


body.menu-open {
    overflow: hidden;
}


img {

    display: block;

    max-width: 100%;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input,
textarea,
select {

    font: inherit;

}


button {
    cursor: pointer;
}


.container {

    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin-left: auto;
    margin-right: auto;

}


.kn {

    font-family:
        'Noto Sans Kannada',
        sans-serif;

}


/* =============================================================
   ACCESSIBILITY
============================================================= */

.skip-link {

    position: fixed;

    left: 15px;
    top: -100px;

    z-index: 99999;

    background: var(--gold);

    color: var(--navy);

    padding: 10px 16px;

    border-radius: 8px;

    font-weight: 800;

}


.skip-link:focus {
    top: 15px;
}


/* =============================================================
   TOP BAR
============================================================= */

.topbar {

    min-height: 38px;

    display: flex;

    align-items: center;

    background: var(--navy-dark);

    color: rgba(255,255,255,.85);

    font-size: 13px;

}


.topbar-inner {

    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


.topbar-left,
.topbar-right {

    display: flex;

    align-items: center;

    gap: 22px;

}


.topbar a {

    color: rgba(255,255,255,.86);

    transition: color .25s ease;

}


.topbar a:hover {
    color: var(--gold);
}


.topbar i {

    color: var(--gold);

    margin-right: 7px;

}


/* =============================================================
   HEADER / NAVIGATION
============================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

}


.navbar {

    height: 82px;

    background: rgba(255,255,255,.98);

    border-bottom:
        1px solid rgba(8,39,70,.07);

    transition:
        box-shadow .3s ease,
        height .3s ease;

}


.site-header.scrolled .navbar {

    box-shadow:
        0 8px 28px rgba(8,39,70,.10);

}


.nav-inner {

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


/* =============================================================
   BRAND
============================================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 13px;

    flex-shrink: 0;

}


.brand-logo {

    width: 53px;

    height: 59px;

    object-fit: contain;

}


.brand-text strong {

    display: block;

    font-family:
        'Playfair Display',
        Georgia,
        serif;

    color: var(--navy);

    font-size: 20px;

    line-height: 1.05;

}


.brand-text span {

    display: block;

    margin-top: 4px;

    color: #617083;

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .8px;

}


.brand-text small {

    display: block;

    color: #9aa5b1;

    font-size: 8px;

    margin-top: 1px;

}


/* =============================================================
   NAV LINKS
============================================================= */

.nav-links {

    display: flex;

    align-items: center;

    gap: 24px;

    list-style: none;

}


.nav-links > li > a {

    position: relative;

    display: inline-flex;

    align-items: center;

    color: #344256;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    transition: color .25s ease;

}


.nav-links > li > a:not(.apply-btn)::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -9px;

    width: 0;

    height: 2px;

    border-radius: 3px;

    background: var(--gold);

    transition: width .3s ease;

}


.nav-links > li > a:hover,
.nav-links > li > a.active {

    color: var(--navy);

}


.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {

    width: 100%;

}


/* =============================================================
   APPLY BUTTON
============================================================= */

.apply-btn {

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 11px 20px;

    border-radius: 30px;

    background: var(--gold);

    color: var(--navy) !important;

    box-shadow:
        0 8px 22px rgba(247,184,20,.25);

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease !important;

}


.apply-btn:hover {

    transform: translateY(-2px);

    background: var(--gold-light);

    box-shadow:
        0 12px 28px rgba(247,184,20,.35);

}


.apply-btn::after {
    display: none !important;
}


/* =============================================================
   MOBILE MENU BUTTON
============================================================= */

.menu-toggle {

    display: none;

    align-items: center;

    justify-content: center;

    width: 44px;

    height: 44px;

    border: 0;

    border-radius: 10px;

    background: var(--navy);

    color: white;

    font-size: 22px;

}


/* =============================================================
   COMMON SECTION ELEMENTS
============================================================= */

.section {

    padding: 90px 0;

}


.section-light {

    background: var(--off-white);

}


.section-tag {

    color: var(--gold-dark);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.7px;

    text-transform: uppercase;

    margin-bottom: 10px;

}


.section-title {

    font-family:
        'Playfair Display',
        Georgia,
        serif;

    color: var(--navy);

    font-size:
        clamp(32px, 4vw, 48px);

    line-height: 1.15;

}


.section-description {

    color: var(--muted);

    font-size: 15px;

}


/* =============================================================
   BUTTONS
============================================================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 13px 23px;

    border-radius: 30px;

    font-size: 13px;

    font-weight: 800;

    transition:
        transform .3s ease,
        background .3s ease,
        color .3s ease;

}


.btn:hover {
    transform: translateY(-3px);
}


.btn-gold {

    background: var(--gold);

    color: var(--navy);

}


.btn-gold:hover {
    background: white;
}


.btn-white-outline {

    border:
        1px solid rgba(255,255,255,.35);

    color: white;

}


.btn-white-outline:hover {

    background: white;

    color: var(--navy);

}


/* =============================================================
   GLOBAL ADMISSION CTA
============================================================= */

.global-cta {

    position: relative;

    overflow: hidden;

    padding: 72px 0;

    background:
        linear-gradient(
            110deg,
            rgba(5,29,53,.98),
            rgba(14,67,119,.93)
        ),
        url('../../images/slide/11.jpeg')
        center / cover no-repeat;

    color: white;

}


.global-cta::before {

    content: "";

    position: absolute;

    width: 360px;

    height: 360px;

    border-radius: 50%;

    border:
        60px solid rgba(255,255,255,.035);

    right: -90px;

    top: -150px;

}


.global-cta-inner {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

}


.global-cta-content {

    max-width: 680px;

}


.light-tag {
    color: var(--gold);
}


.global-cta h2 {

    font-family:
        'Playfair Display',
        Georgia,
        serif;

    font-size:
        clamp(30px,4vw,44px);

    line-height: 1.15;

    margin-bottom: 10px;

}


.global-cta p {

    max-width: 620px;

    color: rgba(255,255,255,.70);

}


.global-cta-actions {

    display: flex;

    gap: 12px;

    flex-shrink: 0;

}


/* =============================================================
   FOOTER
============================================================= */

.site-footer {

    background: #051a2e;

    color: rgba(255,255,255,.66);

}


.footer-grid {

    display: grid;

    grid-template-columns:
        1.45fr .75fr .75fr 1.25fr;

    gap: 50px;

    padding: 65px 0 48px;

}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 17px;

}


.footer-brand img {

    width: 49px;

    height: 55px;

    object-fit: contain;

}


.footer-brand strong {

    display: block;

    color: white;

    font-family:
        'Playfair Display',
        Georgia,
        serif;

    font-size: 19px;

}


.footer-brand span {

    display: block;

    color: var(--gold);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.footer-about > p {

    max-width: 350px;

    font-size: 13px;

    line-height: 1.75;

}


.footer-motto {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 22px;

    padding-top: 18px;

    border-top:
        1px solid rgba(255,255,255,.08);

}


.footer-motto i {

    color: var(--gold);

    font-size: 22px;

}


.footer-motto strong {

    display: block;

    color: white;

    font-size: 13px;

}


.footer-motto span {

    display: block;

    font-size: 11px;

}


.footer-column h4 {

    position: relative;

    color: white;

    font-size: 15px;

    margin-bottom: 20px;

    padding-bottom: 10px;

}


.footer-column h4::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 30px;

    height: 2px;

    background: var(--gold);

}


.footer-column ul {
    list-style: none;
}


.footer-column li {
    margin-bottom: 9px;
}


.footer-column li a {

    color: rgba(255,255,255,.65);

    font-size: 13px;

    transition:
        color .25s ease,
        padding-left .25s ease;

}


.footer-column li a:hover {

    color: var(--gold);

    padding-left: 4px;

}


.footer-contact-item {

    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-bottom: 14px;

    font-size: 13px;

}


.footer-contact-item i {

    margin-top: 2px;

    color: var(--gold);

}


.footer-contact-item a {

    color: rgba(255,255,255,.70);

}


.footer-contact-item a:hover {

    color: var(--gold);

}


/* =============================================================
   FOOTER BOTTOM
============================================================= */

.footer-bottom {

    border-top:
        1px solid rgba(255,255,255,.08);

}


.footer-bottom-inner {

    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    font-size: 12px;

}


.footer-bottom-links {

    display: flex;

    gap: 10px;

    align-items: center;

}


.footer-bottom a:hover {
    color: var(--gold);
}


/* =============================================================
   FLOATING APPLY
============================================================= */

.floating-apply {

    position: fixed;

    right: 22px;

    bottom: 82px;

    z-index: 850;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 12px 18px;

    border-radius: 30px;

    background: var(--gold);

    color: var(--navy);

    font-size: 12px;

    font-weight: 800;

    box-shadow:
        0 12px 30px rgba(0,0,0,.18);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.floating-apply:hover {

    transform: translateY(-4px);

    box-shadow:
        0 16px 35px rgba(0,0,0,.23);

}


/* =============================================================
   BACK TO TOP
============================================================= */

.back-top {

    position: fixed;

    right: 22px;

    bottom: 22px;

    z-index: 850;

    display: grid;

    place-items: center;

    width: 45px;

    height: 45px;

    border: 0;

    border-radius: 50%;

    background: var(--navy);

    color: white;

    font-size: 17px;

    box-shadow: var(--shadow-md);

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease,
        background .3s ease;

}


.back-top.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


.back-top:hover {
    background: var(--gold);
    color: var(--navy);
}


/* =============================================================
   ANIMATIONS
============================================================= */

.reveal {

    opacity: 0;

    transform: translateY(32px);

    transition:
        opacity .75s ease,
        transform .75s ease;

}


.reveal-left {

    opacity: 0;

    transform: translateX(-42px);

    transition:
        opacity .8s ease,
        transform .8s ease;

}


.reveal-right {

    opacity: 0;

    transform: translateX(42px);

    transition:
        opacity .8s ease,
        transform .8s ease;

}


.reveal-scale {

    opacity: 0;

    transform: scale(.94);

    transition:
        opacity .75s ease,
        transform .75s ease;

}


.reveal.show,
.reveal-left.show,
.reveal-right.show,
.reveal-scale.show {

    opacity: 1;

    transform:
        translateX(0)
        translateY(0)
        scale(1);

}


/* =============================================================
   RESPONSIVE - TABLET
============================================================= */

@media (max-width: 1050px) {

    .menu-toggle {
        display: inline-flex;
    }


    .nav-links {

        position: absolute;

        left: 0;
        right: 0;

        top: 82px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        max-height:
            calc(100vh - 82px);

        overflow-y: auto;

        padding: 15px 25px 25px;

        background: white;

        box-shadow:
            0 20px 35px rgba(8,39,70,.14);

    }


    .nav-links.open {
        display: flex;
    }


    .nav-links li {

        width: 100%;

        border-bottom:
            1px solid #edf0f4;

    }


    .nav-links li:last-child {
        border-bottom: 0;
    }


    .nav-links > li > a {

        display: flex;

        width: 100%;

        padding: 13px 5px;

    }


    .nav-links > li > a::after {
        display: none;
    }


    .nav-apply-item {

        padding-top: 12px;

    }


    .nav-apply-item .apply-btn {

        width: 100%;

    }


    .footer-grid {

        grid-template-columns:
            1.3fr 1fr 1fr;

    }


    .footer-contact {

        grid-column:
            1 / -1;

    }

}


/* =============================================================
   RESPONSIVE - MOBILE/TABLET
============================================================= */

@media (max-width: 800px) {

    .topbar-right {
        display: none;
    }


    .global-cta-inner {

        flex-direction: column;

        align-items: flex-start;

    }


    .global-cta-actions {

        flex-wrap: wrap;

    }


    .footer-grid {

        grid-template-columns:
            1fr 1fr;

    }


    .footer-contact {

        grid-column: auto;

    }

}


/* =============================================================
   RESPONSIVE - MOBILE
============================================================= */

@media (max-width: 580px) {

    .container {

        width:
            min(
                calc(100% - 28px),
                1180px
            );

    }


    .topbar {
        min-height: 35px;
    }


    .topbar-inner {
        min-height: 35px;
    }


    .top-email {
        display: none;
    }


    .navbar {
        height: 72px;
    }


    .nav-links {
        top: 72px;
    }


    .brand-logo {

        width: 42px;

        height: 48px;

    }


    .brand-text strong {
        font-size: 16px;
    }


    .brand-text span {
        font-size: 7px;
    }


    .brand-text small {
        display: none;
    }


    .section {
        padding: 65px 0;
    }


    .global-cta {
        padding: 60px 0;
    }


    .global-cta-actions {

        width: 100%;

        flex-direction: column;

    }


    .global-cta-actions .btn {
        width: 100%;
    }


    .footer-grid {

        grid-template-columns: 1fr;

        gap: 35px;

        padding-top: 50px;

    }


    .footer-bottom-inner {

        flex-direction: column;

        justify-content: center;

        text-align: center;

        padding: 15px 0;

    }


    .floating-apply {

        right: 15px;

        bottom: 75px;

        padding: 11px 14px;

    }


    .floating-apply span {
        display: none;
    }


    .back-top {

        right: 15px;

        bottom: 18px;

    }

}


/* =============================================================
   REDUCED MOTION ACCESSIBILITY
============================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

    }


    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {

        opacity: 1;

        transform: none;

    }

}
/* ============================================================
   APS WEBSITE - MAIN WIDTH FIX
   ============================================================ */

.container {
    width: min(1180px, calc(100% - 40px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Larger screens */
@media (min-width: 1400px) {
    .container {
        width: min(1240px, calc(100% - 60px)) !important;
        max-width: 1240px !important;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .container {
        width: calc(100% - 32px) !important;
        max-width: none !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .container {
        width: calc(100% - 24px) !important;
    }
}