/* ==========================================
   Study Guide Page - Complete Styles
   For WordPress Block Pattern
   ========================================== */

:root {
    --primary-red: #D32F2F;
    --dark-red: #B71C1C;
    --light-red: #FF5252;
    --white: #FFFFFF;


}

/* ==========================================
   Hero Section
   ========================================== */

.wp-block-group:has(> h1.has-text-align-center) {
    position: relative;
    overflow: hidden;
}

/* Hero Background Enhancement */
.wp-block-group[style*="url("] {
    background-attachment: fixed !important;
    position: relative;
}

.wp-block-group[style*="url("]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(211, 47, 47, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

/* Hero Title Animation */
h1[style*="font-size:64px"] {
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Subtitle */
.has-text-align-center+p[style*="font-size:20px"] {
    animation: fadeInUp 1s ease-out 0.2s both;

    margin-left: auto;
    margin-right: auto;
}

/* Hero Buttons */
.wp-block-group[style*="url("] .wp-block-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
    gap: 1rem;
}

.wp-block-group[style*="url("] .wp-block-button__link {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wp-block-group[style*="url("] .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Primary Button */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    position: relative;
    overflow: hidden;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover::after {
    left: 100%;
}

/* Outline Button */
.wp-block-button.is-style-outline .wp-block-button__link {
    border-color: white;
    color: white;
    transition: all 0.3s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

/* ==========================================
   Table of Contents
   ========================================== */

/* .has-gray-light-background-color {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
} */

/* TOC Title */
.has-gray-light-background-color>.has-text-align-center:first-child {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

/* TOC Buttons */
.has-gray-light-background-color .wp-block-buttons {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.has-gray-light-background-color .wp-block-button {
    margin: 0;
}

.has-gray-light-background-color .wp-block-button__link {
    font-size: 0.9rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.has-gray-light-background-color .is-style-outline .wp-block-button__link {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background: white;
}

.has-gray-light-background-color .is-style-outline .wp-block-button__link:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
}

/* ==========================================
   Section Styling
   ========================================== */

/* Section Titles */
.wp-block-group h2.has-text-align-center {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 800;
    position: relative;
    /* display: inline-block; */
    padding-bottom: 1rem;
}

.wp-block-group h2.has-text-align-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-radius: 2px;
}

/* Section with ID (Scroll targets) */
.wp-block-group[id] {
    scroll-margin-top: 80px;
}

/* ==========================================
   Overview Section
   ========================================== */

#overview h3.has-primary-color {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

#overview ul {
    list-style: none;
    padding-right: 0;
}

#overview ul li {
    position: relative;
    padding-right: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

#overview ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.25rem;
}

/* University Type Cards */
#overview .wp-block-group[style*="background-color:#f8f9fa"] {
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#overview .wp-block-group[style*="background-color:#f8f9fa"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(211, 47, 47, 0.2);
}

/* ==========================================
   Requirements Section
   ========================================== */

#requirements .wp-block-group.has-white-background-color {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#requirements .wp-block-group.has-white-background-color:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

#requirements h3 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

#requirements ul {
    list-style: none;
    padding-right: 0;
}

#requirements ul li {
    position: relative;
    padding-right: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

#requirements ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 2px;
    color: #4CAF50;
    font-weight: bold;
}

/* Info Box */
#requirements .wp-block-group.has-base-background-color {
    background: #E3F2FD !important;
    border-color: #2196F3 !important;
}

/* ==========================================
   Documents Section
   ========================================== */

#documents h3.has-primary-color {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#documents ul {
    list-style: none;
    padding-right: 0;
}

#documents ul li {
    position: relative;
    padding-right: 1.75rem;
    margin-bottom: 0.875rem;
    line-height: 1.6;
}

#documents ul li::before {
    content: '📄';
    position: absolute;
    right: 0;
    top: 0;
}

/* ==========================================
   Process Section
   ========================================== */

#process .wp-block-column {
    transition: all 0.3s ease;
}

#process .wp-block-column:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(211, 47, 47, 0.15) !important;
}

#process h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.75rem;
}

/* ==========================================
   Timeline Section - Table
   ========================================== */

#timeline .wp-block-table {
    display: block;
    overflow-x: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--primary-red);
    /* Added red border */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--primary-red) #f1f1f1;
}

/* Global Table Fix for Articles */
.entry-content .wp-block-table,
.wp-block-table {
    display: block;
    overflow-x: auto;
    border: 1px solid rgba(211, 47, 47, 0.2);
    /* Light red border for general tables */
    border-radius: 8px;
}

#timeline table {
    width: 100%;
    border-collapse: collapse;
}

#timeline thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#timeline th {
    padding: 1rem;
    text-align: right;
    font-weight: 700;
    color: var(--gray-dark);
    border-bottom: 3px solid var(--primary-red);
}

#timeline td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #eee;
    text-align: right;
}

#timeline tbody tr {
    transition: background-color 0.2s ease;
}

#timeline tbody tr:hover {
    background-color: rgba(211, 47, 47, 0.04);
}

#timeline tbody tr td:first-child {
    font-weight: 600;
}

/* ==========================================
   FAQ Section - Details/Summary
   ========================================== */

#faq details {
    cursor: pointer;
    transition: all 0.3s ease;
}

#faq details:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    transform: translateX(-4px);
}

#faq summary {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-dark);
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 2rem;
    transition: color 0.3s ease;
}

#faq summary::marker {
    content: '';
}

#faq summary::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease, background 0.3s ease;
}

#faq details[open] summary::before {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
    background: var(--dark-red);
}

#faq details[open] summary {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

#faq summary:hover {
    color: var(--primary-red);
}

#faq details p {
    color: #666;
    line-height: 1.7;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
    /* h1[style*="font-size:64px"] {
        font-size: 48px !important;
    } */

    .wp-block-group[style*="padding-top:100px"] {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .wp-block-group[style*="padding-top:80px"] {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

@media (max-width: 768px) {
    /* h1[style*="font-size:64px"] {
        font-size: 36px !important;
        line-height: 1.3 !important;
    } */

    /* p[style*="font-size:20px"] {
        font-size: 16px !important;
    } */

    .wp-block-group[style*="padding-top:100px"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .wp-block-group[style*="padding-top:80px"],
    .wp-block-group[style*="padding-top:60px"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .wp-block-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .wp-block-button__link {
        justify-content: center;
        text-align: center;
    }

    #overview ul li,
    #requirements ul li,
    #documents ul li {
        font-size: 0.9375rem;
    }

    #timeline table {
        font-size: 0.875rem;
    }

    #timeline th,
    #timeline td {
        padding: 0.625rem 0.75rem;
    }

    #faq summary {
        font-size: 1rem;
        padding-left: 2.5rem;
    }
}

@media (max-width: 480px) {
    /* h1[style*="font-size:64px"] {
        font-size: 28px !important;
    } */

    .wp-block-group h2.has-text-align-center {
        font-size: 1.5rem !important;
    }

    .has-gray-light-background-color .wp-block-button__link {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

    #faq summary {
        font-size: 0.9375rem;
    }
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {

    .wp-block-buttons,
    #faq summary::before {
        display: none;
    }

    #faq details {
        page-break-inside: avoid;
    }

    #faq details summary {
        font-weight: 700;
    }

    #faq details p {
        display: block !important;
        opacity: 1 !important;
    }
}