/* ====================================
   Responsive Styles
   ==================================== */

/* Footer layout - mobile first */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-col:first-child {
        grid-column: auto;
    }
}

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .slide-title {
        font-size: 48px;
    }

    .slide-subtitle {
        font-size: 20px;
    }

    .section-grid,
    .services-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }

    .section-padding {
        padding: 60px 0;
    }

    /* Header */
    .header-top {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        padding: 30px;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link {
        padding: 15px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: var(--light-gray);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    /* Hero */
    .hero-slider {
        height: 500px;
    }

    .slide-title {
        font-size: 36px;
    }

    .slide-subtitle {
        font-size: 18px;
    }

    .slide-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .slide-buttons .btn {
        width: 100%;
    }

    /* Grids */
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vip-grid,
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .lca-item {
        flex-direction: column;
        text-align: center;
    }

    .lca-number {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testimonial-card {
        flex: 0 0 100%;
    }

    /* Newsletter */
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-text h2 {
        font-size: 28px;
    }

    .newsletter-form-inline {
        max-width: 100%;
    }

    /* Page Header */
    .page-header {
        height: 300px;
    }

    .page-header-content h1 {
        font-size: 36px;
    }

    /* Blog Layout */
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        margin-top: 50px;
    }

    /* Courses Grid */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        margin-top: 40px;
    }

    /* Values */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mission Vision */
    .mv-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }

    .section-padding {
        padding: 40px 0;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px 25px;
        font-size: 16px;
    }

    /* Hero */
    .hero-slider {
        height: 400px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-subtitle {
        font-size: 16px;
    }

    .slider-controls {
        padding: 0 15px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Section Header */
    .section-title {
        font-size: 28px;
    }

    .section-desc {
        font-size: 16px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 36px;
    }

    /* Newsletter */
    .newsletter-text h2 {
        font-size: 24px;
    }

    .newsletter-text p {
        font-size: 16px;
    }

    .newsletter-form-inline {
        flex-direction: column;
    }

    .newsletter-form-inline input,
    .newsletter-form-inline button {
        width: 100%;
        border-radius: 5px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Page Header */
    .page-header {
        height: 250px;
    }

    .page-header-content h1 {
        font-size: 28px;
    }

    /* Blog */
    .blog-post-meta {
        flex-wrap: wrap;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-filter {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-btn {
        font-size: 14px;
        padding: 8px 15px;
    }

    /* Contact */
    .form-row {
        flex-direction: column;
    }

    .social-links-large a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Features */
    .features-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Scroll Top */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Founder */
    .founder-content {
        flex-direction: column;
    }

    /* Course Features */
    .course-footer {
        flex-direction: column;
        gap: 15px;
    }

    .course-footer .btn {
        width: 100%;
    }
}

/* Blog Specific Styles */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.blog-post {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.blog-post-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    min-width: 70px;
}

.blog-post-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.blog-post-date .month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 5px;
}

.blog-post-date .year {
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.blog-post-content {
    padding: 40px;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray);
}

.blog-post-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.blog-post-content h2 a {
    color: var(--text-color);
}

.blog-post-content h2 a:hover {
    color: var(--primary-color);
}

.blog-post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Sidebar Styles */
.sidebar-widget {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px 0 0 5px;
}

.search-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.category-list li {
    border-bottom: 1px solid #f0f0f0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--text-color);
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.category-list span {
    color: var(--gray);
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-post-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
}

.recent-post-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.recent-post-info h4 a {
    color: var(--text-color);
}

.recent-post-info h4 a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 13px;
    color: var(--gray);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    padding: 8px 15px;
    background-color: var(--light-gray);
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-color);
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.widget-newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.widget-newsletter .widget-title {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.widget-newsletter p {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.widget-newsletter-form input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

.widget-newsletter-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    background-color: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
}

.gallery-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11,30,67,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.gallery-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--white);
}

.gallery-content p {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.gallery-link {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(255,255,255,0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: var(--transition);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary-color);
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-items {
    margin: 30px 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--gray);
}

.contact-social h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.social-links-large {
    display: flex;
    gap: 15px;
}

.social-links-large a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
}

.social-links-large a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(11,30,67,0.3);
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}
