* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary-color: #dc2626;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.header-content {
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 200px;
    height: auto;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.college-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.branch-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.9;
}

.institution-name {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-divider {
    width: 100px;
    height: 4px;
    background: white;
    margin: 0 auto;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

/* Registration CTA Block */
.registration-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 50px 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.registration-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register-btn {
    background: white;
    color: #667eea;
}

.register-btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.subsection {
    margin-bottom: 50px;
}

/* Main Features of Screening Test - Special Background */
.subsection.screening-features {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
    border-radius: 16px;
    padding: 35px;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.subsection-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.subsection.screening-features .subsection-title {
    color: #1e40af;
    border-left-color: #1e40af;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid;
}

.feature-card.medical {
    border-top-color: var(--secondary-color);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #dc2626;
}

.feature-card.engineering {
    border-top-color: var(--primary-color);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-light);
    line-height: 1.7;
}

.info-text {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    color: var(--text-dark);
    line-height: 1.8;
}

.subsection.screening-features .info-text {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
    border: 2px solid #f59e0b;
    border-left-width: 4px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Different background colors for feature items */
.feature-item:nth-child(1),
.feature-item:nth-child(6),
.feature-item:nth-child(11),
.feature-item:nth-child(16),
.feature-item:nth-child(21),
.feature-item:nth-child(26),
.feature-item:nth-child(31) {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.feature-item:nth-child(2),
.feature-item:nth-child(7),
.feature-item:nth-child(12),
.feature-item:nth-child(17),
.feature-item:nth-child(22),
.feature-item:nth-child(27),
.feature-item:nth-child(32) {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.feature-item:nth-child(3),
.feature-item:nth-child(8),
.feature-item:nth-child(13),
.feature-item:nth-child(18),
.feature-item:nth-child(23),
.feature-item:nth-child(28),
.feature-item:nth-child(33) {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #ec4899;
}

.feature-item:nth-child(4),
.feature-item:nth-child(9),
.feature-item:nth-child(14),
.feature-item:nth-child(19),
.feature-item:nth-child(24),
.feature-item:nth-child(29),
.feature-item:nth-child(34) {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.feature-item:nth-child(5),
.feature-item:nth-child(10),
.feature-item:nth-child(15),
.feature-item:nth-child(20),
.feature-item:nth-child(25),
.feature-item:nth-child(30),
.feature-item:nth-child(35) {
    background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
    border-color: #8b5cf6;
}

.feature-icon {
    font-size: 36px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* Info Box */
.info-box {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    border: 2px solid var(--border-color);
}

.registration-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary-color);
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 180px;
}

.info-value {
    color: var(--text-light);
    flex: 1;
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Exam Details */
.exam-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.exam-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid;
}

.medical-exam {
    border-top-color: var(--secondary-color);
}

.engineering-exam {
    border-top-color: var(--primary-color);
}

.exam-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.exam-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exam-item {
    color: var(--text-light);
    line-height: 1.7;
}

.exam-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

.exam-item ul {
    margin-left: 20px;
    margin-top: 8px;
}

.exam-item li {
    margin-bottom: 5px;
}

.note-text {
    margin-top: 10px;
    font-style: italic;
    color: var(--text-light);
    font-size: 14px;
}

.important-note {
    background: #fef3c7;
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.important-note p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* Admission Box */
.admission-box {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    border: 2px solid var(--border-color);
}

.admission-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.admission-subtitle:first-child {
    margin-top: 0;
}

.admission-list {
    list-style: none;
    padding-left: 0;
}

.admission-list li {
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
}

.admission-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

/* Register Box */
.register-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 10px;
    padding: 30px;
    border: 2px solid #86efac;
}

.register-text {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.8;
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-info {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 25px;
    margin-top: 25px;
}

.contact-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 180px;
}

.contact-value {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 18px;
}

.signature-section {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.signature-item {
    text-align: center;
}

.signature-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.signature-org {
    font-size: 16px;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        max-width: 150px;
        padding: 12px;
    }

    .college-name {
        font-size: 18px;
    }

    .institution-name {
        font-size: 28px;
    }

    .registration-cta {
        padding: 40px 30px;
    }

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

    .cta-text {
        font-size: 16px;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 16px;
    }

    .subsection.screening-features {
        padding: 25px 20px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 32px;
    }

    .section {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .subsection-title {
        font-size: 20px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        flex-direction: column;
        gap: 15px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 32px;
    }

    .exam-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-box {
        padding: 20px;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .info-label {
        min-width: auto;
        font-size: 15px;
    }

    .info-value {
        font-size: 15px;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .contact-label {
        min-width: auto;
        font-size: 15px;
    }

    .contact-value {
        font-size: 16px;
    }

    .signature-section {
        flex-direction: column;
        gap: 20px;
    }

    .register-box {
        padding: 20px;
    }

    .admission-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 25px 0;
    }

    .logo {
        max-width: 120px;
        padding: 10px;
    }

    .college-name {
        font-size: 16px;
        line-height: 1.3;
    }

    .institution-name {
        font-size: 24px;
    }

    .subsection.screening-features {
        padding: 20px 15px;
    }

    .registration-cta {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-text {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        padding: 14px 25px;
        font-size: 15px;
    }

    .branch-name {
        font-size: 16px;
    }

    .institution-name {
        font-size: 18px;
        line-height: 1.4;
    }

    .hero {
        padding: 35px 0;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 26px;
        line-height: 1.2;
    }

    .main-content {
        padding: 25px 0;
    }

    .section {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .subsection-title {
        font-size: 18px;
        padding-left: 10px;
    }

    .feature-card {
        padding: 20px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-text {
        font-size: 14px;
    }

    .feature-content h4 {
        font-size: 16px;
    }

    .feature-content p {
        font-size: 14px;
    }

    .exam-card {
        padding: 20px;
    }

    .exam-title {
        font-size: 18px;
    }

    .info-box,
    .register-box,
    .admission-box {
        padding: 15px;
    }

    .register-text {
        font-size: 16px;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-title {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .footer {
        background: white !important;
        color: black !important;
    }

    .feature-card,
    .exam-card,
    .info-box {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


