/* file: assets/css/responsive.css */

/* ====================================
   Extra Small Devices (Phones, < 576px)
==================================== */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    
    /* Header */
    .logo {
        font-size: 1.25rem;
    }
    
    .tagline {
        font-size: 0.7rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-search {
        padding: 0.5rem;
    }
    
    .hero-search .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .hero-stats .col-6 {
        margin-bottom: 1rem;
    }
    
    .stat-item .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-item .stat-label {
        font-size: 0.8rem;
    }
    
    .trending-searches span {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .trending-searches a {
        display: inline-block;
        margin: 0.25rem;
    }
    
    /* Study Goals */
    .goal-grid {
        grid-template-columns: 1fr;
    }
    
    .goal-card {
        padding: 1.5rem;
    }
    
    .goal-card .goal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* College Cards */
    .colleges-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .college-card {
        margin-bottom: 1rem;
    }
    
    .college-card .card-body {
        padding: 1rem;
    }
    
    .college-card .card-footer {
        padding: 1rem;
    }
    
    .college-card .facilities span {
        font-size: 0.7rem;
    }
    
    /* Exam Cards */
    .exams-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .exam-card {
        padding: 1rem;
    }
    
    .exam-card h3 {
        font-size: 1.1rem;
    }
    
    /* Article Cards */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-card .article-content {
        padding: 1rem;
    }
    
    .article-card h3 {
        font-size: 1.1rem;
    }
    
    .article-card .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Footer */
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-stats .col-6 {
        margin-bottom: 1rem;
    }
    
    .footer-links {
        text-align: center !important;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 0.25rem 0.5rem;
    }
    
    /* Forms */
    .form-control,
    .form-select,
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Back to Top */
    .btn-back-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    /* Dashboard */
    .dashboard-sidebar {
        position: static;
        margin-bottom: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination .page-link {
        padding: 0.35rem 0.7rem;
        font-size: 0.85rem;
    }
}

/* ====================================
   Small Devices (Tablets, 576px - 767px)
==================================== */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    /* Study Goals */
    .goal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .goal-card {
        padding: 1.5rem;
    }
    
    /* College Cards */
    .colleges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Exam Cards */
    .exams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Article Cards */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Footer */
    .footer-widget {
        text-align: left;
    }
    
    .footer-stats .col-6 {
        margin-bottom: 1rem;
    }
    
    .footer-links {
        text-align: center !important;
    }
    
    /* Dashboard */
    .dashboard-sidebar {
        position: static;
    }
}

/* ====================================
   Medium Devices (Laptops, 768px - 991px)
==================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Header */
    .search-form {
        max-width: 300px;
    }
    
    .header-actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section .lead {
        font-size: 1.15rem;
    }
    
    /* Study Goals */
    .goal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* College Cards */
    .colleges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Exam Cards */
    .exams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Article Cards */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-widget {
        margin-bottom: 2rem;
    }
    
    .footer-links a {
        margin-left: 1rem;
    }
}

/* ====================================
   Large Devices (Desktops, 992px - 1199px)
==================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Header */
    .search-form {
        max-width: 350px;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    /* Study Goals */
    .goal-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* College Cards */
    .colleges-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Exam Cards */
    .exams-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Article Cards */
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ====================================
   Extra Large Devices (Large Desktops, > 1200px)
==================================== */
@media (min-width: 1200px) {
    /* Study Goals */
    .goal-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* College Cards */
    .colleges-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    /* Exam Cards */
    .exams-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    /* Article Cards */
    .articles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ====================================
   Landscape Mode for Mobile Devices
==================================== */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-stats .row {
        flex-wrap: wrap;
    }
    
    .hero-stats .col-6 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .modal-dialog {
        max-width: 90%;
        margin: 1rem auto;
    }
}

/* ====================================
   High Resolution Screens
==================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.35rem;
    }
    
    .goal-card {
        padding: 2.5rem;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
    
    html {
        font-size: 18px;
    }
}

/* ====================================
   Print Styles
==================================== */
@media print {
    .top-header,
    .main-nav,
    .newsletter-section,
    .footer-stats,
    .btn-back-to-top,
    .header-actions,
    .search-form,
    .hero-search,
    .trending-searches,
    .cta-section,
    .testimonials,
    .predictor-section {
        display: none !important;
    }
    
    body {
        background-color: var(--white);
        font-size: 12pt;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    a {
        text-decoration: none;
        color: var(--dark-color);
    }
    
    .college-card,
    .exam-card,
    .article-card {
        box-shadow: none;
        border: 1px solid var(--gray-light);
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
    
    @page {
        margin: 2cm;
    }
}

/* ====================================
   Dark Mode Support
==================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f9fafb;
        --light-color: #1f2937;
        --white: #2d3748;
        --black: #ffffff;
        --gray-light: #4a5568;
        --gray-dark: #e5e7eb;
    }
    
    body {
        background-color: var(--light-color);
        color: var(--dark-color);
    }
    
    .main-header,
    .college-card,
    .exam-card,
    .article-card,
    .modal-content,
    .dashboard-sidebar,
    .filters-sidebar,
    .goal-card,
    .contact-info,
    .contact-form {
        background-color: var(--white);
        border-color: var(--gray-light);
    }

    .cont{
        background-color: transparent;
    }
    
    .form-control,
    .form-select {
        background-color: var(--light-color);
        color: var(--dark-color);
        border-color: var(--gray-light);
    }
    
    .form-control:focus,
    .form-select:focus {
        background-color: var(--light-color);
        color: var(--dark-color);
    }
    
    .footer-widget ul li a {
        color: var(--dark-color);
    }
    
    .text-muted {
        color: var(--gray-dark) !important;
    }
    
    .bg-light {
        background-color: var(--gray-light) !important;
    }
    
    .table {
        color: var(--dark-color);
    }
    
    .table thead th {
        background-color: var(--gray-light);
        color: var(--dark-color);
    }
    
    .border-bottom {
        border-color: var(--gray-light) !important;
    }
}