/*
 Theme Name: Hello Elementor Child
 Description: Child theme for Hello Elementor
 Author: Your Name
 Template: hello-elementor
 Version: 2.0.0
*/

/* General menu styling for Bootstrap 5 navbar */
.navbar-nav .nav-link {
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Poppins';
}

/* Hover effect */
.navbar-nav .nav-link:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* Footer menu (kept separate) */
footer .footer-pills li a {
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
}


header {
    height: 70px;
    /* Reduced to make navbar thinner */
}

.header-logo {
    height: 60px;
    /* Reduced to fit thinner navbar */
}

.footer-logo {
    height: 120px;
}

i.bi {
    font-family: "bootstrap-icons" !important;
    font-style: normal !important;
    display: inline-block !important;
    visibility: visible !important;

}

a.social-icon {
    display: inline-flex;
    /* makes the link a circle container */
    align-items: center;
    justify-content: center;
    width: 40px;
    /* size of the circle */
    height: 40px;
    border-radius: 50%;
    /* makes it a perfect circle */
    background-color: #ffffff;
    /* circle color */
    color: #03045E;
    /* icon color */
    text-decoration: none;
    /* remove underline */
    transition: background-color 0.3s, color 0.3s;
}

a.social-icon:hover {
    background-color: #03045E;
    /* change background on hover */
    color: #ffffff;
    /* change icon color on hover */
}

a.social-icon i {
    font-size: 18px;
    /* icon size */
}

/* Style dropdown inside navbar */
.navbar-nav .dropdown-menu {
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

/* Ensure nested submenu items look clean */
.navbar-nav .dropdown-menu .dropdown-menu {
    margin-left: 0.5rem;
    margin-top: 0;
}

/* PCES Navbar Toggler Styling */
.navbar-toggler {
    position: relative;
    width: 50px;
    height: 50px;
    border: 2px solid #2596BE !important;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #2596BE 100%);
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.navbar-toggler:hover {
    background: linear-gradient(135deg, #2596BE 0%, #1c20e0 100%) !important;
    border-color: #03045E;
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 150, 190, 0.25);
}

/* Base hamburger styling */
#hamburger-icon {
    position: absolute;
    top: 60%;
    left: 50%;
    width: 30px;
    height: 24px;
    transform: translate(-50%, -50%);
}

#hamburger-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* Closed state - hamburger */
.navbar-toggler[aria-expanded="false"] #hamburger-icon span:nth-child(1) {
    top: 0;
    opacity: 1;
    transform: rotate(0deg);
}

.navbar-toggler[aria-expanded="false"] #hamburger-icon span:nth-child(2),
.navbar-toggler[aria-expanded="false"] #hamburger-icon span:nth-child(3) {
    top: 10px;
    opacity: 1;
    transform: rotate(0deg);
}

.navbar-toggler[aria-expanded="false"] #hamburger-icon span:nth-child(4) {
    top: 20px;
    opacity: 1;
    transform: rotate(0deg);
}

/* Open state - X */
.navbar-toggler[aria-expanded="true"] #hamburger-icon span:nth-child(1) {
    top: 10px;
    width: 0;
    left: 50%;
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] #hamburger-icon span:nth-child(2) {
    top: 10px;
    transform: rotate(45deg);
    background: #ffffff;
}

.navbar-toggler[aria-expanded="true"] #hamburger-icon span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
    background: #ffffff;
}

.navbar-toggler[aria-expanded="true"] #hamburger-icon span:nth-child(4) {
    top: 10px;
    width: 0;
    left: 50%;
    opacity: 0;
}

/* Mobile navbar improvements */
.navbar-collapse {
    flex-grow: inherit;
}

/* Hamburger alignment fixes */
.navbar>.container,
.navbar>.container-fluid {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

/* Make navbar thinner by reducing padding */
.navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Ensure hamburger button has proper spacing */
.navbar-toggler {
    margin-right: 0 !important;
    /* Move hamburger more to the right */
    margin-left: auto !important;
}

/* Ensure proper collapse behavior */
.navbar-collapse.collapse:not(.show) {
    display: none;
}

.navbar-collapse.collapse.show {
    display: block;
}

/* Smooth transitions for navbar collapse */
.navbar-collapse.collapsing {
    transition: height 0.35s ease;
}

/* Additional states for more reliable toggling */
.navbar-toggler.collapsed {
    border-color: #2596BE;
}

.navbar-toggler:not(.collapsed) {
    border-color: #03045E;
    background: linear-gradient(135deg, #2596BE 0%, #13a8ce 100%);
}

/* Ensure hamburger icon visibility */
#hamburger-icon {
    pointer-events: none;
    /* Prevent clicks on the icon itself */
}

#hamburger-icon span {
    pointer-events: none;
    /* Prevent clicks on the spans */
}

/* Mobile navbar styling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        /* background: linear-gradient(135deg, #4162f7 0%, #2596BE 100%); */
        background-color: white;
        border-radius: 0 0 15px 15px;
        margin-top: 10px;
        padding: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    /* Match the top spacing with right spacing for hamburger alignment */
    .navbar {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .navbar>.container,
    .navbar>.container-fluid {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .navbar-toggler {
        margin-right: 1.5rem !important;
        /* More spacing on mobile */
        padding: 0.4rem 0.6rem !important;
    }


    .navbar-nav .nav-link {
        color: #353535 !important;
        padding: 12px 20px;
        border-radius: 8px;
        margin: 5px 0;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: #ffffff !important;
        transform: translateX(10px);
    }

    /* Dropdown styling in mobile */
    .navbar-nav .dropdown-menu {
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .dropdown-menu .dropdown-item {
        color: #03045E;
        padding: 10px 20px;
        transition: all 0.3s ease;
    }

    .navbar-nav .dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #2596BE;
        transform: translateX(5px);
    }
}

/* BLOGS Page Grid */
body.category.category-blogs {
    background-color: #D1E5EB;
    /* Choose your blue */
    font-family: 'Poppins';
}

body.category.category-blogs h3 {
    color: #03045E;
    font-size: 6.25rem;
    font-weight: bold;
}

.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    font-family: 'Poppins', sans-serif;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.9rem;
    color: #555;
}

/* NEWS AND EVENTS Page Styles */
body.category.category-news-and-events {
    font-family: 'Poppins', sans-serif;
}

.news-events-page {
    background-color: #ffffff;
}

/* Hero Section - Optimized height for better visual proportions */
.hero-section {
    height: 40vh !important;
    /* Reduced from 60vh to 40vh for improved page layout balance */
    min-height: 400px;
    overflow: hidden;
    padding-top: 120px;
    /* Add padding to account for fixed navbar */
}

.hero-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #354baf 100%);
}

.hero-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #354baf 100%);
}

.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

/* Position hero content at bottom left */
.hero-overlay .container {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
}

.hero-content {
    text-align: left;
    margin-left: 0;
}

.hero-content {
    max-width: 600px;
    padding-bottom: 2rem;
    /* Add bottom padding for better spacing from edge */
}

.hero-category {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-date {
    font-size: 1rem;
    opacity: 0.9;
}

.btn-outline-light {
    border: 2px solid white;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: #333;
    transform: translateY(-2px);
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    height: 180px;
    overflow: hidden;
    background-color: #c4d3d9;
    background-image: linear-gradient(135deg, #c4d3d9 0%, #e8f0f3 100%);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #c4d3d9;
    background-image: linear-gradient(135deg, #c4d3d9 0%, #e8f0f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-content {
    padding: 1.25rem;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.news-card-title a {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #007bff;
}

.news-card-excerpt {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reading-time {
    font-size: 0.875rem;
    color: #888888;
    font-weight: 400;
}

.read-more-link {
    color: #007bff;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive Design */

/* Large screens - 4 columns */
@media (min-width: 992px) {
    .news-events-page .row .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Tablet screens - 2 columns */
@media (max-width: 991px) {
    .hero-section {
        height: 35vh !important;
    }

    .news-events-page .row .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Mobile screens - 1 column */
@media (max-width: 768px) {
    .hero-section {
        height: 30vh !important;
        min-height: 250px;
        padding-top: 100px;
        /* Slightly less padding for mobile */
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .news-card-image {
        height: 200px;
    }

    .news-events-page .row .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Adjust hero content positioning for mobile */
    .hero-overlay .container {
        bottom: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Adjust logo size for mobile */
    .header-logo {
        height: 55px;
        /* Smaller for mobile */
    }

    header {
        height: 65px;
        /* Thinner header for mobile */
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-section {
        padding-top: 80px;
        /* Even less padding for very small screens */
    }

    /* Further adjust logo for very small screens */
    .header-logo {
        height: 50px;
        /* Smaller for very small screens */
    }

    header {
        height: 60px;
        /* Very thin header for small screens */
    }
}