/*
Theme Name: Office Portal
Theme URI: https://example.com/
Author: Office IT
Description: Bootstrap-based responsive office portal.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: office-portal
*/


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f8fa;
    color: #16324f;
}


/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #d9e3e8;
    position: relative;
    z-index: 100;
}

/* =========================================================
   HEADER LOGO
   ========================================================= */

/*
 * Logo container
 * Desktop: 150px wide
 * Logo image: 90px wide
 */

.site-header .office-logo-box {
    width: 150px !important;
    height: 70px !important;

    min-width: 150px !important;
    max-width: 150px !important;

    min-height: 70px !important;
    max-height: 70px !important;

    flex: 0 0 150px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
}


/* Actual logo */

.site-header .office-logo-image {
    display: block !important;

    width: 90px !important;
    height: 70px !important;

    min-width: 90px !important;
    max-width: 90px !important;

    min-height: 70px !important;
    max-height: 70px !important;

    object-fit: contain !important;
    object-position: center center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}


/* =========================================================
   BRAND TEXT
   ========================================================= */

/* =========================================================
   BRAND TEXT
   ========================================================= */

.office-brand-text {
    min-width: 0;
}

.brand-title {
    margin: 0;
    font-weight: 700;
    color: #003B5C;
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.brand-tagline {
    margin-top: 4px;
    color: #526873 !important;
    font-size: 0.98rem;
    letter-spacing: 0.1px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

/* =========================================================
   MODERN NAVIGATION
   ========================================================= */

.modern-navbar {
    width: 100%;
    min-height: 64px;

    background: linear-gradient(
        90deg,
        #003B5C 0%,
        #005B82 48%,
        #008C95 100%
    ) !important;

    border: 0;
    padding: 0 !important;

    box-shadow: 0 3px 12px rgba(0, 59, 92, 0.18);
}


/* =========================================================
   PORTAL HOME
   ========================================================= */

.modern-navbar .portal-home {
    min-height: 64px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 22px !important;

    color: #ffffff !important;

    font-size: 1.08rem;
    font-weight: 600;

    text-decoration: none;

    border-right: 1px solid rgba(255,255,255,0.22);

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.modern-navbar .portal-home:hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff !important;
}


/* Home icon */

.portal-home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    font-size: 1rem;

    color: #ffffff;
}


/* Portal text */

.portal-home-text {
    white-space: nowrap;
}


/* =========================================================
   NAVIGATION LINKS
   ========================================================= */

.modern-navbar .navbar-nav {
    align-items: center;
    gap: 2px;
}

.modern-navbar .navbar-nav .nav-link {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 64px;

    padding: 0 14px !important;

    color: rgba(255,255,255,0.92) !important;

    font-size: 0.98rem;
    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}


/* Hover */

.modern-navbar .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.10);
}


/* Active */

.modern-navbar .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: rgba(0,0,0,0.12);
}


/* Orange underline */

.modern-navbar .navbar-nav .nav-link::after {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 7px;

    height: 3px;

    background: #F58220;

    border-radius: 10px;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.2s ease;
}

.modern-navbar .navbar-nav .nav-link:hover::after,
.modern-navbar .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}


/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */

.modern-navbar .language-switcher {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 7px;
}


/* English / Hindi buttons */

.modern-navbar .language-switcher a,
.modern-navbar .language-switcher button {
    border-radius: 8px;

    padding: 7px 13px;

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


/* English */

.modern-navbar .language-switcher .language-en {
    background: #ffffff;
    color: #005B82;

    border: 1px solid #ffffff;
}


/* Hindi / selected language */

.modern-navbar .language-switcher .language-hi {
    background: #F58220;
    color: #ffffff;

    border: 1px solid #F58220;
}


/* =========================================================
   MOBILE TOGGLER
   ========================================================= */

.modern-navbar .modern-toggler {
    border: 1px solid rgba(255,255,255,0.45);

    border-radius: 8px;

    padding: 7px 9px;
}

.modern-navbar .modern-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}

/* =========================================================
   MAIN / HERO SECTION
   ========================================================= */

.hero-section {
    padding: 28px 0;
}


/* =========================================================
   CARDS
   ========================================================= */

.profile-card,
.carousel-card,
.content-card {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   PROFILE CARD
   ========================================================= */

.profile-card {
    height: 100%;
    overflow: hidden;
}

.profile-photo {
    display: block;

    width: 100%;
    height: 280px;

    max-width: 100%;

    object-fit: cover;

    background: #e9ecef;
}

.profile-body {
    padding: 20px;
}


/* =========================================================
   MAIN IMAGE CAROUSEL
   ========================================================= */

/*
 * IMPORTANT:
 * The carousel itself is constrained.
 * This prevents a large uploaded image from expanding
 * the page.
 */

.carousel-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
}


/* Carousel */

.carousel-card .carousel {
    width: 100% !important;
    max-width: 100% !important;

    height: 430px !important;
    max-height: 430px !important;

    overflow: hidden !important;
}


/* Carousel inner */

.carousel-card .carousel-inner {
    width: 100% !important;
    max-width: 100% !important;

    height: 430px !important;
    max-height: 430px !important;

    overflow: hidden !important;
}


/* Each slide */

.carousel-card .carousel-item {
    width: 100% !important;

    height: 430px !important;
    max-height: 430px !important;

    overflow: hidden !important;
}


/* Actual carousel image */

.carousel-card .carousel-item img,
.carousel-card .carousel-image {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 430px !important;
    max-height: 430px !important;

    min-width: 0 !important;
    min-height: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff;
}


/* =========================================================
   CAROUSEL CONTROLS
   ========================================================= */

.carousel-card .carousel-control-prev,
.carousel-card .carousel-control-next {
    z-index: 10;
}

.carousel-card .carousel-indicators {
    z-index: 10;
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.section-title {
    font-weight: 700;
    color: #123b6d;
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery-img {
    display: block;

    width: 100%;
    height: 220px;

    max-width: 100%;

    object-fit: cover;

    border-radius: 10px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #123b6d;
    color: #ffffff;

    margin-top: 40px;
    padding: 30px 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    /* Logo */

    .site-header .office-logo-box {
        width: 120px !important;
        height: 65px !important;

        min-width: 120px !important;
        max-width: 120px !important;

        min-height: 65px !important;
        max-height: 65px !important;

        flex: 0 0 120px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .site-header .office-logo-image {
        width: 90px !important;
        height: 65px !important;

        min-width: 90px !important;
        max-width: 90px !important;

        min-height: 65px !important;
        max-height: 65px !important;

        object-fit: contain !important;
        object-position: center center !important;
    }


    /* Profile */

    .profile-photo {
        height: 240px;
    }


    /* Carousel */

    .carousel-card .carousel,
    .carousel-card .carousel-inner,
    .carousel-card .carousel-item {
        height: 320px !important;
        max-height: 320px !important;
    }

    .carousel-card .carousel-item img,
    .carousel-card .carousel-image {
        height: 320px !important;
        max-height: 320px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575px) {

    /* Logo */

    .site-header .office-logo-box {
        width: 105px !important;
        height: 60px !important;

        min-width: 105px !important;
        max-width: 105px !important;

        min-height: 60px !important;
        max-height: 60px !important;

        flex: 0 0 105px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .site-header .office-logo-image {
        width: 80px !important;
        height: 60px !important;

        min-width: 80px !important;
        max-width: 80px !important;

        min-height: 60px !important;
        max-height: 60px !important;

        object-fit: contain !important;
        object-position: center center !important;
    }


    /* Profile */

    .profile-photo {
        height: 220px;
    }


    /* Carousel */

    .carousel-card .carousel,
    .carousel-card .carousel-inner,
    .carousel-card .carousel-item {
        height: 230px !important;
        max-height: 230px !important;
    }

    .carousel-card .carousel-item img,
    .carousel-card .carousel-image {
        height: 230px !important;
        max-height: 230px !important;
    }
	    /* =====================================================
       MOBILE NAVIGATION
       ===================================================== */

    .modern-navbar {
        min-height: 56px;
    }

    .modern-navbar .portal-home {
        min-height: 56px;
        padding: 0 10px !important;

        font-size: 0.98rem;
    }

    .modern-navbar .navbar-nav {
        width: 100%;
        padding: 8px 0;
    }

    .modern-navbar .navbar-nav .nav-link {
        min-height: 44px;
        padding: 8px 14px !important;

        font-size: 0.95rem;
    }

    .modern-navbar .navbar-nav .nav-link::after {
        left: 14px;
        right: auto;
        width: 35px;
        bottom: 4px;
    }
}