/*
Theme Name: GeneratePress Child
Theme URI: https://example.com/generatepress-child
Description: A child theme for GeneratePress.
Author: Your Name
Author URI: https://yourwebsite.com
Template: generatepress
Version: 1.0.0
*/

/* Import the parent theme's style.css */
@import url("../generatepress/style.css");

/* ================================
   CUSTOM HEADER
   ================================ */

.custom-gp-header {
    background: #06224A;
    padding: 15px 20px;
}

.custom-gp-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* FIX: Logo size control */
.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.header-logo .custom-logo-link {
    display: block;
    line-height: 0;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-nav .main-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav .main-menu li {
    margin: 0;
    position: relative; /* For positioning the submenu */
}

.header-nav .main-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.header-nav .main-menu li a:hover {
    opacity: 0.8;
}

/* Sub-menu styles */
.header-nav .main-menu li .sub-menu {
    display: none; /* Hide sub-menu by default */
    position: absolute;
    top: 100%; /* Position below the parent */
    left: 0;
    background-color: #06224A;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    padding: 10px 0;
    z-index: 999;
    opacity: 0; /* Start with hidden opacity */
    transition: opacity 0.3s ease, visibility 0s 0.3s; /* Smooth transition */
}

/* Show sub-menu on hover */
.header-nav .main-menu li:hover .sub-menu {
    display: block;
    opacity: 1; /* Fade in sub-menu */
    visibility: visible; /* Ensure sub-menu is visible */
    transition: opacity 0.3s ease, visibility 0s 0s; /* Smooth fade-in */
}

/* Sub-menu items */
.header-nav .main-menu li .sub-menu li {
    padding: 8px 20px;
}

.header-nav .main-menu li .sub-menu li a {
    color: #ffffff;
    font-size: 14px;
}

.header-nav .main-menu li .sub-menu li a:hover {
    opacity: 0.8;
}

/* Apply Now Button */
.header-btn {
    flex-shrink: 0;
}

.header-btn .apply-now-btn {
    background: #ffffff;
    color: #06224A;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.header-btn .apply-now-btn:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .custom-gp-header .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .header-logo img {
        max-height: 50px;
    }

    .header-nav .main-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* ================================
   HERO SLIDER - FIX FULL WIDTH
   ================================ */

/* ================================
   HERO SLIDER - FULL WIDTH FIX
   ================================ */

.hero-slider-section {
    position: relative;
    height: 80vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    left: 0;
    overflow: hidden;
    /* Remove any potential constraints from parent */
    max-width: none !important;
}

/* Ensure the slider container is full width */
.hero-slider {
    width: 100vw !important;
    height: 100%;
    position: relative;
}

.hero-slide {
    height: 80vh;
    width: 100vw !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    color: #ffffff;
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 20px;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-btn {
    background: #ffffff;
    color: #06224A;
    padding: 12px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.hero-btn:hover {
    opacity: 0.8;
}

/* Swiper navigation */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
}

.swiper-pagination-bullet {
    background: #ffffff;
}

/* Fix for specific page template to ensure full width */
body.page-template-landing-page .site-content,
body.page-template-landing-page #primary,
body.page-template-landing-page #main {
    max-width: 100% !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Ensure no container restricts the slider */
body.page-template-landing-page .container,
body.page-template-landing-page .site-container,
body.page-template-landing-page .inside-article {
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}
/* Fix for specific page template to ensure full width */
body.page-template-landing-al .site-content,
body.page-template-landing-al #primary,
body.page-template-landing-al #main {
    max-width: 100% !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Ensure no container restricts the slider */
body.page-template-landing-al .container,
body.page-template-landing-al .site-container,
body.page-template-landing-al .inside-article {
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}
@media (max-width: 768px) {
    .hero-slider-section {
        height: 60vh;
        margin-left: calc(-50vw + 50%);
    }
    
    .hero-slide {
        height: 60vh;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
}/* ================================
   HERO SLIDER - FULL WIDTH FIX
   ================================ */

.hero-slider-section {
    position: relative;
    height: 80vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    left: 0;
    overflow: hidden;
    /* Remove any potential constraints from parent */
    max-width: none !important;
}

/* Ensure the slider container is full width */
.hero-slider {
    width: 100vw !important;
    height: 100%;
    position: relative;
}

.hero-slide {
    height: 80vh;
    width: 100vw !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    color: #ffffff;
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 20px;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-btn {
    background: #ffffff;
    color: #06224A;
    padding: 12px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.hero-btn:hover {
    opacity: 0.8;
}

/* Swiper navigation */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
}

.swiper-pagination-bullet {
    background: #ffffff;
}

/* Fix for specific page template to ensure full width */
body.page-template-landing-page .site-content,
body.page-template-landing-page #primary,
body.page-template-landing-page #main {
    max-width: 100% !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Ensure no container restricts the slider */
body.page-template-landing-page .container,
body.page-template-landing-page .site-container,
body.page-template-landing-page .inside-article {
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}
/* Fix for specific page template to ensure full width */
body.page-template-landing-al .site-content,
body.page-template-landing-al #primary,
body.page-template-landing-al #main {
    max-width: 100% !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Ensure no container restricts the slider */
body.page-template-landing-al .container,
body.page-template-landing-al .site-container,
body.page-template-landing-al .inside-article {
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}
@media (max-width: 768px) {
    .hero-slider-section {
        height: 60vh;
        margin-left: calc(-50vw + 50%);
    }
    
    .hero-slide {
        height: 60vh;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
}

/* ================================
   SECTION 1: ACADEMIC ENVIRONMENT & LEADERSHIP
   ================================ */

.section-leadership {
    background: #fafbfd;
    padding: 54px 20px;
    width: 100%;
    clear: both;
}

.section-leadership .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-leadership .section-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 26px;
    color: #06224A;
    font-weight: 700;
}

.section-leadership .section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    background: #06224A;
    margin: 12px auto 0;
    border-radius: 3px;
    opacity: 0.9;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.leadership-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(6, 34, 74, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leadership-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(6,34,74,0.09);
}

.leadership-card .card-icon img {
    width: 48px;
    height: 48px;
    display: block;
    margin-bottom: 6px;
}

.leadership-card h4 {
    font-size: 15px;
    color: #06224A;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.leadership-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.45;
    margin: 0;
    flex: 1 0 auto;
}

.leadership-card .card-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #06224A;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .leadership-grid {
        grid-template-columns: 1fr;
    }
}
/* Custom SVG Icon Styling for GeneratePress */
.leadership-card .card-icon svg {
    width: 50px;
    height: 50px;
    color: #4CAF50; /* Green color for icons */
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Add hover effect for the icons */
.leadership-card:hover .card-icon svg {
    color: #FF6347; /* Change color to tomato on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

/* ================================
   SECTION 2: ABOUT US
   ================================ */

.section-about {
    padding: 52px 20px;
    background: #fff;
    width: 100%;
    clear: both;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 36px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 22px;
    color: #06224A;
    margin: 0 0 12px;
    font-weight: 800;
}

.about-text p {
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-btn {
    display: inline-block;
    background: #06224A;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 8px;
    transition: opacity 0.3s;
}

.about-btn:hover {
    opacity: 0.9;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(6,34,74,0.06);
    display: block;
}

@media (max-width: 960px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

/* ================================
   SECTION 3: PROGRAMS SLIDER
   ================================ */

.section-programs {
    padding: 54px 20px;
    background: #fafbfd;
    width: 100%;
    clear: both;
}

.section-programs .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-programs .section-title {
    text-align: center;
    font-size: 20px;
    color: #06224A;
    margin-bottom: 26px;
    font-weight: 700;
}

.program-slider {
    position: relative;
    padding: 20px 0;
}

.program-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(6, 34, 74, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(6,34,74,0.09);
}

.program-card .program-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.program-card h4 {
    font-size: 18px;
    color: #06224A;
    margin: 20px 20px 10px;
    font-weight: 700;
}

.program-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 20px 15px;
}

.program-card .program-link {
    display: inline-block;
    margin: 0 20px 20px;
    font-size: 14px;
    color: #06224A;
    text-decoration: none;
    font-weight: 700;
}

/* ================================
   SECTION 4: EVENTS GRID
   ================================ */

.section-events {
    padding: 54px 20px 80px;
    background: #fff;
    width: 100%;
    clear: both;
}

.section-events .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-events .section-title {
    text-align: center;
    font-size: 20px;
    color: #06224A;
    margin-bottom: 26px;
    font-weight: 700;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
}

.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(6,34,74,0.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.event-title {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(255,255,255,0.92);
    padding: 8px 12px;
    border-radius: 22px;
    color: #06224A;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(6,34,74,0.06);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(6,34,74,0.08);
}

.events-grid .event-card:nth-child(n+4) img {
    height: 150px;
}

@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-title {
        font-size: 14px;
        padding: 8px 10px;
    }
}

/* ================================
   LANDING PAGE CONTENT
   ================================ */

.landing-content {
    width: 100%;
    clear: both;
}

/* ================================
   COURSE SLIDER (if you use it)
   ================================ */

.course-slider-section {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    clear: both;
}

.course-slider-header {
    text-align: center;
    margin-bottom: 30px;
}

.course-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.course-slider-track {
    display: flex;
    gap: 25px;
    transition: transform 0.4s ease;
}

.course-slide {
    min-width: 320px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.course-slide img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.course-slide-content {
    padding: 20px;
}

.course-slide-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.course-slide-content p {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.course-slider-nav {
    width: 100%;
    position: absolute;
    top: 45%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.course-slider-btn {
    background: #06224A;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    transition: 0.3s;
}

.course-slider-btn:hover {
    background: #03152e;
}

@media (max-width: 768px) {
    .course-slide {
        min-width: 260px;
    }
}

/* ================================
   FIX: FORCE SECTIONS TO STACK VERTICALLY
   ================================ */

/* Target the main container of the landing page */
body.page-template-landing-page main#main,
body.page-template-landing-page .site-content,
body.page-template-landing-page .content-area {
    display: block !important;
}

/* Ensure all sections stack vertically */
body.page-template-landing-page .entry-content,
body.page-template-landing-page .landing-content {
    display: block !important;
    width: 100%;
}

/* Specifically target sections to ensure they're block elements */
.section-leadership,
.section-about,
.section-programs,
.section-events,
.hero-slider-section,
.landing-content {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix for any flex/grid container that might be wrapping sections */
body.page-template-landing-page .inside-article,
body.page-template-landing-page article {
    display: block !important;
}

/* ================================
   FIX: FORCE SECTIONS TO STACK VERTICALLY
   ================================ */

/* Target the main container of the landing page */
body.page-template-landing-al main#main,
body.page-template-landing-al .site-content,
body.page-template-landing-al .content-area {
    display: block !important;
}

/* Ensure all sections stack vertically */
body.page-template-landing-al .entry-content,
body.page-template-landing-al .landing-content {
    display: block !important;
    width: 100%;
}

/* Specifically target sections to ensure they're block elements */
.section-leadership,
.section-about,
.section-programs,
.section-events,
.hero-slider-section,
.landing-content {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix for any flex/grid container that might be wrapping sections */
body.page-template-landing-al .inside-article,
body.page-template-landing-al article {
    display: block !important;
}


/* Additional fix for GeneratePress specific containers */
.site-main, 
.content-area, 
#primary {
    display: block;
    width: 100%;
}

/* If sections are still inline, use this nuclear option */
@media (min-width: 769px) {
    body.page-template-landing-page main#main > * {
        display: block !important;
        width: 100% !important;
        float: none !important;
        clear: both !important;
    }
}

/* ================================
   IMAGE GALLERY SECTION
   ================================ */
.section-gallery {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.section-gallery .section-title {
    text-align: center;
    font-size: 36px;
    color: #06224A;
    margin-bottom: 30px;
}

.gallery-images {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.gallery-item {
    flex: 1 1 calc(33.33% - 20px);
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(100% - 20px);
    }
}

/* ================================
   DIRECTOR MESSAGE SECTION
   ================================ */
.section-director {
    padding: 60px 30px 30px 30px;
    background-color: #ffffff;
}

.section-director .director-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.director-message {
    flex: 1;
    max-width: 50%;
}

.director-message h2 {
    font-size: 32px;
    color: #06224A;
    margin-bottom: 20px;
}

.director-message p {
    font-size: 18px;
    line-height: 1.6;
    color: #555555;
}

.director-image {
    flex: 1;
    max-width: 40%;
	height:50%;
}

.director-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.director-image img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .director-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .director-message {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .director-image {
        max-width: 100%;
    }
}

.hero-slide {
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;  /* Ensure the video stays in the background */
}

.slide-content {
    position: relative;
    z-index: 1;  /* Keeps the text on top of the video */
}
