/* Introduction Section */
.intro-section {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Background image with responsive properties */
    background-image: url('assets/banners/academics_banner.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    
    /* Fallback background color */
    background-color: #667eea;
}

/* Add a subtle gradient overlay for better text contrast - REMOVED */
.intro-section::before {
    content: none;
    display: none;
}

.intro-overlay {
    /* Hide the overlay element */
    display: none;
}

.intro-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    text-align: center;
    z-index: 3;
    margin: 0 auto;
    padding: 1.5rem;
}

.intro-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive styles for intro section */
@media (max-width: 768px) {
    .intro-container {
        padding: 0.875rem 1rem;
    }
    
    .intro-text {
        padding: 0.875rem;
        font-size: clamp(0.9rem, 2.2vw, 1.05rem);
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .intro-section {
        min-height: auto;
        padding: 0.5rem 0;
    }
    
    .intro-container {
        padding: 0.5rem 0.75rem;
    }
    
    .intro-text {
        padding: 0.7rem 0.625rem;
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        line-height: 1.35;
        border-radius: 10px;
    }
}

/* Academic Resources Section */
.resources-section {
    padding: 4rem 2rem 6rem;
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd); /* enhanced light blue gradient */
    min-height: 70vh;
    position: relative;
}

/* Add a subtle overlay for better text contrast */
.resources-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.1);
    z-index: 1;
}

.resources-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.resources-title {
    text-align: center;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2.25rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    position: relative;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

/* Accent underline */
.resources-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -14px;
    width: 120px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffffff, #f0f9ff, #ffffff);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.6),
        0 6px 18px rgba(255, 255, 255, 0.3);
}

/* Title entrance animation */
@keyframes titleFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.resources-title.animate-in {
    animation: titleFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.resources-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Resource Button Styles */
.resource-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 
        0 8px 32px rgba(59, 130, 246, 0.1),
        0 4px 16px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(30px);
}

.resource-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.resource-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-4px);
    box-shadow: 
        0 16px 40px rgba(59, 130, 246, 0.15),
        0 8px 24px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.resource-btn:hover::before {
    opacity: 1;
}

.resource-btn:active {
    transform: translateY(-2px);
}

.btn-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.resource-btn:hover .btn-text {
    color: #0f172a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.resource-btn:hover .btn-icon {
    background: rgba(59, 130, 246, 0.25);
    transform: scale(1.1);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #1e40af;
}

/* Animation Keyframes */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Class */
.resource-btn.animate-in {
    animation: slideInFromBottom 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered Animation Delays */
.resource-btn[data-delay="0"].animate-in {
    animation-delay: 0ms;
}

.resource-btn[data-delay="1"].animate-in {
    animation-delay: 150ms;
}

.resource-btn[data-delay="2"].animate-in {
    animation-delay: 300ms;
}

.resource-btn[data-delay="3"].animate-in {
    animation-delay: 450ms;
}

.resource-btn[data-delay="4"].animate-in {
    animation-delay: 600ms;
}

/* Schedule Main Section */
.schedule-main-section {
    padding: 4rem 2rem 6rem;
    background: linear-gradient(135deg, #4338ca, #6366f1); /* deep indigo to bright indigo gradient matching banner */
    min-height: 70vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Schedule Container Styles */
.schedule-container {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Tab Navigation */
.schedule-tabs {
    display: flex;
    overflow-x: auto;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #22c55e;
}

.tab-btn.active {
    color: #22c55e;
    border-bottom-color: #22c55e;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overview Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* Two equal columns for the two remaining cards */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    color: #22c55e;
    font-size: 1.25rem;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: #1f2937;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-item {
    display: flex;
    align-items: center;
}

.timeline-date {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
    margin-right: 1rem;
}

.timeline-label {
    color: #4b5563;
}

/* Weightage Chart */
.weightage-chart {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.weightage-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.weightage-label {
    font-size: 0.875rem;
    color: #4b5563;
}

.weightage-bar {
    background: rgba(226, 232, 240, 0.3);
    height: 32px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.weightage-fill {
    background: linear-gradient(90deg, #34d399, #22c55e);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Upcoming List */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upcoming-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
}

.upcoming-date {
    background: #FFF7CC;
    color: #854d0e;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    min-width: 70px;
    text-align: center;
    margin-right: 0.75rem;
}

.upcoming-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upcoming-info strong {
    color: #1f2937;
    font-size: 0.9375rem;
}

.venue {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.countdown {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

/* Resources Grid */
.resource-section {
    margin-top: 2.5rem;
}

.resource-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    background: #FFF7CC;
}

.resource-card i {
    font-size: 2rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.resource-card h4 {
    font-size: 1rem;
    margin: 0 0 0.75rem;
    color: #1f2937;
}

.resource-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Schedule Section */
.schedule-section {
    padding: 1rem 0;
}

.schedule-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

/* Department Filter */
.department-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dept-btn {
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dept-btn:hover {
    background: #f1f5f9;
}

.dept-btn.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
}

/* Schedule Tables */
.schedule-table {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0.5rem;
    overflow: hidden;
}

.schedule-table thead {
    background: #f1f5f9;
}

.schedule-table th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: left;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
}

.schedule-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #4b5563;
}

.schedule-table tbody tr:hover {
    background: #f8fafc;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.syllabus-link {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.syllabus-link:hover {
    text-decoration: underline;
}

/* CTWR Info Box */
.ctwr-info-box {
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid #22c55e;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.ctwr-info-box h3 {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.25rem;
}

.ctwr-info-box h3 i {
    color: #22c55e;
    margin-right: 0.5rem;
}

.info-list {
    margin: 0;
    padding-left: 1.5rem;
}

.info-list li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.info-list li:last-child {
    margin-bottom: 0;
}

/* Mid-Term & End-Term Heroes */
.midterm-hero, .endterm-hero {
    background: #FFF7CC;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.midterm-details, .endterm-details {
    text-align: center;
}

.midterm-details h3, .endterm-details h3 {
    margin: 0 0 0.5rem;
    color: #854d0e;
    font-size: 1.5rem;
}

.midterm-details p, .endterm-details p {
    margin: 0;
    color: #78350f;
}

/* Examination Guidelines */
.midterm-guidelines, .practical-guidelines {
    margin-top: 2.5rem;
}

.guidelines-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.guideline-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.guideline-item i {
    color: #22c55e;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.guideline-item h4 {
    margin: 0 0 0.5rem;
    color: #1f2937;
    font-size: 1.1rem;
}

.guideline-item p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9375rem;
}

/* Grade Calculator */
.grade-calculator {
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    padding: 2rem;
}

.grade-calculator h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1f2937;
}

.calculator-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.calculator-form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4b5563;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
}

.calculate-btn {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.calculate-btn:hover {
    background: #16a34a;
}

.calculation-result {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculation-result h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.grade-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grade {
    font-size: 4rem;
    font-weight: 800;
    color: #22c55e;
}

.percentage {
    font-size: 1.5rem;
    color: #64748b;
}

/* Practical Guidelines */
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.guideline-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.guideline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.guideline-card i {
    font-size: 2rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.guideline-card h4 {
    margin: 0 0 0.75rem;
    color: #1f2937;
    font-size: 1.1rem;
}

.guideline-card p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
}

/* Download Section */
.download-section {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.download-section h2 {
    font-size: 2rem;
    color: #ffffff;
    margin: 0 0 0.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}

.download-section p {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #22c55e;
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.download-btn i {
    margin-right: 0.5rem;
}

/* CWS Section Styling */
.cws-description {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cws-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.cws-description h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.cws-includes-heading {
    color: #000000 !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    margin: 1.5rem 0 1rem 0 !important;
}

.cws-includes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cws-includes li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #000000;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.cws-includes li::before {
    content: '→';
    color: #22c55e;
    font-size: 1.2rem;
    position: absolute;
    left: 0.5rem;
    top: 0.75rem;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .intro-section {
        /* Ensure content clears the fixed header on mobile */
        padding: 6rem 1.5rem 3rem;
        background-position: center top;
        min-height: 380px; /* maintain coverage on tablets */
    }
    
    .intro-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .resources-section {
        padding: 3rem 1.5rem 4rem;
    }
    
    .resources-title {
        margin-bottom: 2rem;
    }
    
    .resource-btn {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-text {
        font-size: 1rem;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Schedule specific mobile styles */
    .schedule-main-section {
        padding: 3rem 1rem 4rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .schedule-tabs {
        padding: 0 0.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 1.5rem 1rem;
    }
    
    .overview-cards {
        grid-template-columns: 1fr; /* Stack cards vertically on mobile */
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .intro-section {
        /* Extra top padding for smaller screens to avoid header overlap */
        padding: 6rem 1rem 2rem;
        min-height: 360px; /* taller on mobile so full text is on banner */
    }
    
    .resources-section {
        padding: 2rem 1rem 3rem;
    }
    
    .resources-title {
        font-size: 1.75rem;
    }
    
    .resource-btn {
        padding: 1rem 1.25rem;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
    }
    
    /* Schedule specific styles for small mobile */
    .schedule-main-section {
        padding: 2rem 0.75rem 3rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .search-container {
        padding: 0.5rem 1rem;
    }
    
    .tab-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .tab-content {
        padding: 1.25rem 0.75rem;
    }
    
    .info-card {
        flex-direction: column;
    }
    
    .card-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .timeline-date {
        margin-right: 0;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .guidelines-grid, .guidelines-content {
        grid-template-columns: 1fr;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Desktop and large screens - maintain original height-based design */
@media (min-width: 769px) {
    .intro-section {
        height: 80vh;
        min-height: 500px;
        max-height: 700px;
    }
    
    .intro-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 2rem;
    }
}

/* Banner responsive styles */
@media (max-width: 768px) {
    .intro-section {
        /* Remove fixed height and use content-based height */
        height: auto;
        min-height: auto;
        max-height: none;
        padding: 4rem 0;
        
        /* Maintain full width background coverage */
        background-size: cover;
        background-position: center;
    }
    
    .intro-container {
        /* Remove absolute positioning for content-based height */
        position: relative;
        padding: 2rem 1.5rem;
        transform: none;
        top: auto;
        left: auto;
        
        /* Keep centering for content */
        margin: 0 auto;
    }
    
    .intro-text {
        padding: 1.5rem;
        font-size: clamp(0.9rem, 2.2vw, 1.1rem);
        line-height: 1.6;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .intro-section {
        /* Content-based height with comfortable padding */
        height: auto;
        min-height: auto;
        padding: 3rem 0;
    }
    
    .intro-container {
        padding: 1.5rem 1rem;
    }
    
    .intro-text {
        padding: 1.2rem;
        font-size: clamp(0.85rem, 2vw, 1rem);
        line-height: 1.5;
        border-radius: 10px;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 320px) {
    .intro-section {
        padding: 2.5rem 0;
    }
    
    .intro-container {
        padding: 1rem;
    }
    
    .intro-text {
        padding: 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
}

/* Additional hover effects for better interaction */
.resource-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.05), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.resource-btn:hover::before {
    left: 100%;
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 2;
}
