/* Admission Rules Page Styles */

/* CSS Variables for Theme Support */
:root {
    --primary-color: #f2b915;
    --secondary-color: #1e293b;
    --accent-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #475569;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #f59e0b);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #334155);
}

/* Light Theme Variables */
body.theme-light {
    --primary-color: #f2b915;
    --secondary-color: #1e293b;
    --accent-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --border-color: #cbd5e1;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.admission-hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.theme-light .admission-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.admission-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 185, 21, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stadmi-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

body.theme-light .stadmi-hero-content {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(16, 35, 90, 0.1);
    box-shadow: 0 20px 40px rgba(16, 35, 90, 0.08);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(242, 185, 21, 0.15);
    color: #f2b915;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(242, 185, 21, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.theme-light .hero-badge {
    background: rgba(16, 35, 90, 0.08);
    border-color: rgba(16, 35, 90, 0.15);
    color: #10235a;
}

.stadmi-hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #f2b915);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -1px;
}

body.theme-light .stadmi-hero-title {
    background: linear-gradient(to right, #10235a, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stadmi-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

body.theme-light .stadmi-hero-subtitle {
    color: #475569;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: rgba(242, 185, 21, 0.1);
    top: -100px;
    right: -50px;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(59, 130, 246, 0.1);
    bottom: -50px;
    left: -50px;
}

/* Main Content Section */
.admission-content {
    padding: 80px 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

.stadmi-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Rules Section */
.rules-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rule-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.rule-card:hover::before {
    transform: scaleY(1);
}

.rule-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.rule-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(242, 185, 21, 0.1);
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

body.theme-light .rule-header i {
    color: #10235a;
    background: rgba(36, 21, 242, 0.1);
}

.rule-card:hover .rule-header i {
    transform: rotate(360deg);
    background: var(--gradient-primary);
    color: #000;
}
body.theme-light .rule-card:hover .rule-header i {
    background: #10235a;
    color: #f2b915;
}

.rule-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.rule-list li:hover {
    background: rgba(242, 185, 21, 0.05);
    transform: translateX(10px);
    color: var(--text-primary);
}

.rule-number {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.1rem;
    min-width: 25px;
}
body.theme-light .rule-number {
    color: #10235a;
}
/* Declaration Section */
.declaration-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.signature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.signature-box {
    text-align: center;
}

.signature-box label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.signature-line {
    height: 2px;
    background: var(--border-color);
    border-bottom: 2px dashed var(--primary-color);
    transition: all 0.3s ease;
}

.signature-box:hover .signature-line {
    border-bottom-style: solid;
    transform: scaleX(1.1);
}

/* Sidebar Section */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.important-points-card,
.download-card,
.help-card,
.note-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.important-points-card:hover,
.download-card:hover,
.help-card:hover,
.note-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.card-header i {
    font-size: 1.3rem;
    color: var(--primary-color);
    background: rgba(242, 185, 21, 0.1);
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}
body.theme-light .card-header i {
    color: #10235a;
    background: rgba(36, 21, 242, 0.1);
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Important Points */
.points-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.points-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 6px;
}

.points-list li:hover {
    background: rgba(34, 197, 94, 0.1);
    transform: translateX(8px);
    color: var(--text-primary);
}

.points-list i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.points-list li:hover i {
    transform: scale(1.2);
}

/* Download Card */
.download-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.download-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: rgb(0, 0, 0);
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
body.theme-light .download-btn {
    background: linear-gradient(100deg, #10235a, #000000);
    color: #fff;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(242, 185, 21, 0.4);
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:active {
    transform: translateY(0);
}

/* Help Card */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--info-color);
    font-size: 1.2rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: rotate(15deg);
    background: var(--info-color);
    color: var(--text-primary);
}

.contact-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--info-color);
}

/* Note Card */
.note-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.note-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--warning-color);
    border-radius: 2px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stadmi-hero-title {
        font-size: 2.5rem;
    }
    
    .signature-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .admission-hero {
        padding: 60px 0;
    }
    
    .stadmi-hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .stadmi-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .admission-content {
        padding: 60px 0;
    }
    
    .rule-card,
    .important-points-card,
    .download-card,
    .help-card,
    .note-card {
        padding: 20px;
    }
    
    .rule-header {
        margin-bottom: 20px;
    }
    
    .rule-header h3,
    .card-header h3 {
        font-size: 1.2rem;
    }
    
    .rule-list li,
    .points-list li {
        margin-bottom: 10px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .stadmi-hero-title {
        font-size: 1.8rem;
    }
    
    .stadmi-hero-subtitle {
        font-size: 1rem;
    }
    
    .stadmi-container {
        padding: 0 15px;
    }
    
    .rule-card,
    .important-points-card,
    .download-card,
    .help-card,
    .note-card {
        padding: 15px;
    }
    
    .rule-header,
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .rule-header i,
    .card-header i {
        margin-bottom: 5px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.rule-card,
.important-points-card,
.download-card,
.help-card,
.note-card {
    animation: fadeInUp 0.8s ease-out;
}

.rule-card:nth-child(1) { animation-delay: 0.1s; }
.rule-card:nth-child(2) { animation-delay: 0.2s; }
.rule-card:nth-child(3) { animation-delay: 0.3s; }
.rule-card:nth-child(4) { animation-delay: 0.4s; }
.rule-card:nth-child(5) { animation-delay: 0.5s; }
.rule-card:nth-child(6) { animation-delay: 0.6s; }

.important-points-card { animation-delay: 0.7s; }
.download-card { animation-delay: 0.8s; }
.help-card { animation-delay: 0.9s; }
.note-card { animation-delay: 1s; }

/* Focus States for Accessibility */
.rule-card:focus,
.important-points-card:focus,
.download-card:focus,
.help-card:focus,
.note-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.download-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .admission-hero {
        background: none;
        padding: 20px 0;
    }
    
    .admission-content {
        padding: 20px 0;
    }
    
    .rule-card,
    .important-points-card,
    .download-card,
    .help-card,
    .note-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .download-btn {
        display: none;
    }
}