/* ==========================================================
   GGCK website fixes (mobile / layout) - design unchanged
   Loaded after style.css on all main pages.
   ========================================================== */

/* never allow sideways scrolling on phones */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/* leadership photos: keep proportions instead of stretching */
.course-img img.ggck-leader-img {
    width: 100%;
    object-fit: cover;
    object-position: top center;
}

/* long words / email addresses must wrap */
.footer-contact li,
.contact-info-content p,
.header-top-contact a,
.course-title a,
.course-meta-left {
    overflow-wrap: anywhere;
}

/* program list on Curriculum page */
.ggck-program-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.ggck-program-list li {
    padding: 8px 0;
    line-height: 1.6;
}

/* tablets */
@media (max-width: 991px) {
    .course-img img.ggck-leader-img {
        height: 460px !important;
    }
}

/* phones */
@media (max-width: 767px) {
    .course-img img.ggck-leader-img {
        height: 380px !important;
    }

    .hero-single .hero-content .hero-sub-title {
        letter-spacing: 2px !important;
        font-size: 14px !important;
    }

    .hero-single .hero-title {
        font-size: 34px;
    }

    .site-breadcrumb .breadcrumb-title {
        font-size: 32px;
    }

    .site-title {
        font-size: 30px;
        overflow-wrap: break-word;
    }

    .contact-map iframe {
        height: 320px !important;
    }

    .notification-bar marquee {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .course-img img.ggck-leader-img {
        height: 330px !important;
    }

    .hero-single .hero-title {
        font-size: 30px;
    }
}

/* ---------- college name + logo (clear on every page) ---------- */
.navbar-brand.ggck-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand.ggck-brand img {
    width: auto;
    height: 72px;
    object-fit: contain;
}

.ggck-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.ggck-brand-name {
    color: #2D1744;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .2px;
    white-space: nowrap;
}

.ggck-brand-place {
    color: var(--theme-color2, #D0721E);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* desktop with full menu: keep the name compact so the menu fits */
@media (min-width: 992px) and (max-width: 1199px) {
    .ggck-brand-text { display: none; }
    .navbar .navbar-nav .nav-link { white-space: nowrap; }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .navbar-brand.ggck-brand img { height: 62px; }
    .ggck-brand-name { font-size: 14px; white-space: normal; max-width: 150px; }
    .ggck-brand-place { font-size: 12px; }
}

@media (max-width: 991px) {
    .navbar-brand.ggck-brand img { height: 56px; }
    .ggck-brand-name { font-size: 15px; white-space: normal; }
}

@media (max-width: 400px) {
    .navbar-brand.ggck-brand { gap: 8px; }
    .navbar-brand.ggck-brand img { height: 48px; }
    .ggck-brand-name { font-size: 13px; }
    .ggck-brand-place { font-size: 11px; letter-spacing: 2px; }
}

.ggck-footer-logo img {
    width: 120px;
    height: auto;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
}

.ggck-footer-name {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    margin-top: 12px;
}

.ggck-app-logo { background: #fff !important; }
