/* Responsive Adjustments for Kotravai */

@media (max-width: 991px) {
    /* Hero Adjustments */
    .hero-title {
        font-size: 2.8rem;
    }
    .countdown-value {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    /* Hero Adjustments */
    .hero-title {
        font-size: 2rem;
    }
   /* .navbar-custom .navbar-brand img {
        height: 80px;
    }*/
    .countdown {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .countdown-item:not(:last-child)::after {
        display: none; /* Hide separators on mobile */
    }
    .time-box {
        width: 70px;
        height: 70px;
    }
    .time-box .num {
        font-size: 1.5rem;
    }
    .time-box .label {
        font-size: 0.6rem;
    }
    .hero-section {
        text-align: center !important;
    }
    .hero-section .container .row .col-lg-8 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* About Section Gallery */
    /* Fixed class name from .gallery to .gallery-grid */
    .about-section .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }
    .about-section .card, .about-section .left, .about-section .right {
        clip-path: none !important;
        height: 250px;
    }
    .about-title {
        font-size: 2rem;
    }

    /* Vision/Mission/Values */
    .core-values {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    .core-values .cv-item {
        flex: 0 0 22%; /* 4 items per row */
        margin-bottom: 10px;
    }

    /* Events / Awards Section - Override Inline Styles */
    .event-card.flex-column .event-content,
    .event-card.flex-column .event-images {
        width: 100% !important;
        padding: 20px !important;
    }
    .event-card.flex-column .event-images img {
        margin-bottom: 10px;
    }

    /* Stats Section */
    .stat-item {
        margin-bottom: 15px;
    }
    .stats-section .col-6 {
        margin-bottom: 25px;
    }
    .vm-icon{
        font-size: 2.5rem;
    }
    .navbar-custom {
        background-color: #071022;
        padding: 0.25rem 1rem;
    }
    .navbar-custom .navbar-brand{
        margin: 0;
    }
    .header-mobile-logo {
        max-width: 160px;
        height: auto;
    }
    .navbar-custom.scrolled{
        padding: 1rem;
    }
    .display-4{
        font-size: 1.25rem !important;
    }
    .inner-banner p{
        font-size: 14px;
    }
    /* Creative Mobile Menu Styling */
    .navbar-collapse {
        background-color: #071022;
        padding: 1.2rem 1rem 1.2rem 0;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    .navbar-custom .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 3px 0;
    }
    .navbar-custom .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    .navbar-custom .navbar-nav .nav-link {
        font-size: 15px;
        font-weight: 600;
        padding: 10px 0;
        color: rgba(255, 255, 255, 0.9) !important;
        transition: all 0.3s ease;
        display: inline-block;
    }
    .navbar-custom .navbar-nav .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Pushes arrow to the far right */
        width: 100%;
    }
    .navbar-custom .navbar-nav .nav-link.active {
        color: var(--accent-gold) !important;
        border-bottom: 2px solid var(--accent-gold);
    }
    .navbar-custom .navbar-nav .nav-link:hover {
        color: var(--accent-gold) !important;
        transform: translateX(5px);
    }
    /* Move caret to right and style it */
    .navbar-custom .navbar-nav .dropdown-toggle::after {
        margin-left: 0;
        transition: transform 0.3s ease;
        color: rgba(255, 255, 255, 0.7);
    }
    /* Rotate caret on expansion */
    .navbar-custom .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
        color: var(--accent-gold);
    }
    /* Dropdown sub-menu creative layout on mobile */
    .navbar-custom .navbar-nav .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.03);
        border-left: 2px solid var(--accent-gold);
        border-radius: 0 4px 4px 0;
        margin: 5px 0 10px 10px;
        padding: 5px 15px;
        box-shadow: none;
        display: none;
    }
    .navbar-custom .navbar-nav .dropdown-menu.show {
        display: block;
    }
    .navbar-custom .navbar-nav .dropdown-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: 500;
        padding: 8px 0;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    .navbar-custom .navbar-nav .dropdown-menu .dropdown-item:hover {
        color: var(--accent-gold) !important;
        transform: translateX(5px);
    }
    .event-details-section a{
        font-size: 14px;
    }
    .inner-banner {
        height: 320px !important;
        padding-top: 10px !important;
    }
    .district-gov-card { max-width: 100% !important; }
}

@media (max-width: 575px) {
    /* Core Values */
    .core-values .cv-item {
        flex: 0 0 30%; /* 2 items per row on extra small screens */
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 1.8rem;
    }
    .cta-section .d-flex {
        flex-direction: column;
        align-items: center;
    }
    .cta-section .btn {
        width: 100%;
        margin-bottom: 15px;
    }
}