/* ========================================
   IHNA Scholarships Page - Custom Styles
   ======================================== */

/* ==================
   CSS Variables
   ================== */
:root {
    --primary-color: #009791;
    --secondary-color: #02a9a4;
    --accent-color: #f7941d;
    --success-color: #10b981;
    --background-color: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --light-bg: #f9fafb;
    --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);
    --transition: all 0.3s ease;
}

/* ==================
   Global Styles
   ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 76px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* ==================
   Header/Navigation
   ================== */
.navbar {
    background-color: var(--background-color) !important;
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--border-color);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.brand-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

/* ==================
   Banner with Form Section
   ================== */
.banner-section {
    background-image: linear-gradient(rgb(0 151 145 / 85%), rgb(79 183 178 / 85%)), url('./images/scholarship-banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 4rem 0;
    margin-bottom: 3rem;
    min-height: 650px;
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .banner-section {
        background-image: linear-gradient(rgb(0 151 145 / 85%), rgb(79 183 178 / 85%)) !important;
        background-attachment: scroll !important;
    }

    .banner-content {
        margin-top: 3rem;
    }

}

@media (max-width: 767px) {

    .mt-mob {
        margin-top: 0.75rem;
    }
}


.banner-content {
    padding: 2rem;

}

.banner-content h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

.banner-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: clamp(1rem, 1.21rem + 0.3vw, 1.27rem);
    line-height: 1.8;
}

/* Hide the line break on small screens */
.desktop-break {
    display: none;
}

/* Show only on desktops (you can adjust breakpoint) */
@media (min-width: 992px) {
    .desktop-break {
        display: inline;
    }
}


/* Banner Form Container */
.banner-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
}

.banner-form-container .form-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.75rem;
}

/* Banner Form Styles */
.banner-enquiry-form .form-group {
    margin-bottom: 0.85rem;
}


.banner-enquiry-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.banner-enquiry-form .required {
    color: var(--accent-color);
    font-weight: bold;
}

.banner-enquiry-form .form-control {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.banner-enquiry-form .form-control::placeholder {
    color: #6b7280;
    opacity: 1;
    font-size: 0.9rem;
}

.banner-enquiry-form textarea.form-control::placeholder {
    font-size: 0.85rem;
}

.banner-enquiry-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.banner-enquiry-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.banner-enquiry-form select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    padding-right: 2.5rem;
    cursor: pointer;
    height: auto;
    line-height: 1.5;
}

.banner-enquiry-form select.form-control optgroup {
    font-weight: 700;
    color: var(--primary-color);
    font-style: normal;
    background-color: #f3f4f6;
    padding: 0.5rem 0;
}

.banner-enquiry-form select.form-control option {
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-weight: 400;
}

.banner-enquiry-form select.form-control optgroup option {
    padding-left: 1.5rem;
}

.banner-enquiry-form .custom-control-label {
    font-size: 0.875rem;
    line-height: 1.5;
    cursor: pointer;
}

.banner-enquiry-form .custom-control-label.small {
    font-size: 0.8rem;
    line-height: 1.4;
}


.banner-enquiry-form .btn-danger,
.banner-enquiry-form .btn-danger:focus,
.banner-enquiry-form .btn-danger:active,
.banner-enquiry-form .btn-danger:visited {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff;
    box-shadow: none !important;
}


.banner-enquiry-form .btn-danger:hover {
    background-color: green !important;
    border-color: green !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* Scrollbar Styling for Form Container */
.banner-form-container::-webkit-scrollbar {
    width: 8px;
}

.banner-form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.banner-form-container::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.banner-form-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Responsive Banner */
@media (max-width: 991px) {
    .banner-section {
        padding: 3rem 0;
        min-height: auto;
        background-attachment: scroll;
    }

    .banner-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .banner-form-container {
        max-height: none;
    }
}

@media (max-width: 767px) {
    .banner-section {
        padding: 2rem 0;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-form-container {
        padding: 1.5rem;
    }

    .banner-form-container .form-title {
        font-size: 1.25rem;
    }
}


/* ==================
   Main Content Layout
   ================== */
.main-content {
    padding: 0 2rem 3rem 2rem;
}

.main-area {
    padding: 0 2rem;
}

/* ==================
   Sidebar
   ================== */
.sidebar {
    background-color: var(--light-bg);
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border-color);
}

.sidebar-sticky {
    position: sticky;
    top: 90px;
}

.sidebar-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 0.75rem;
}

.sidebar-links a {
    color: var(--text-primary);
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.sidebar-links a:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    padding-left: 1rem;
}

.sidebar-links i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.need-help {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid var(--secondary-color);
}

.need-help p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.need-help a {
    color: var(--secondary-color);
    font-weight: 600;
}

.info-box {
    font-size: 0.9rem;
}

.info-box p {
    margin-bottom: 0.5rem;
}

.info-box i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* ==================
   Content Sections
   ================== */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary-color);
}

.content-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Highlight Box */
.highlight-box {
    background-color: #dbeafe;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.highlight-box i {
    color: var(--success-color);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Featured Scholarship */
.featured-scholarship {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.featured-scholarship i {
    color: #f59e0b;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Search Filter Box */
.search-filter-box {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.search-filter-box h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.btn-group-toggle .btn {
    flex: 1;
}

.criteria-checkboxes {
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 4px;
}

.custom-control {
    margin-bottom: 0.75rem;
}

.custom-control-label {
    cursor: pointer;
    font-weight: 500;
}

/* Scholarship Card */
.scholarship-card {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.scholarship-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.scholarship-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.scholarship-amount {
    font-size: 2rem;
    color: var(--success-color);
    font-weight: 700;
    margin: 1rem 0;
}

.scholarship-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.scholarship-campus {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.scholarship-campus i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.scholarship-description {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.scholarship-criteria {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.scholarship-criteria h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.scholarship-criteria ul {
    margin: 0;
    padding-left: 1.5rem;
}

.scholarship-criteria li {
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

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

.btn-danger,
.btn-danger:focus,
.btn-danger:active,
.btn-danger:visited,
.btn-danger:focus-visible,
.btn-danger:active:focus {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
    box-shadow: none !important;
}


.btn-danger:hover {
    background-color: green !important;
    border-color: green !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}


.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    transition: var(--transition);
}

.btn-outline-secondary.active,
.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* ==================
   Accordion
   ================== */
.accordion .card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.accordion .card-header {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.accordion .btn-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    width: 100%;
}

.accordion .btn-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.accordion .btn-link i.fas:first-child {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.accordion .btn-link .fa-chevron-down {
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.accordion .btn-link:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
}

.accordion .card-body {
    padding: 1.5rem;
    line-height: 1.8;
}

.accordion .card-body ul {
    margin-top: 1rem;
}

.accordion .card-body li {
    margin-bottom: 0.75rem;
}

.topic-heading {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.reference-type h5 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.reference-type i {
    margin-right: 0.5rem;
}

/* ==================
   Contact Section
   ================== */
.contact-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.contact-box h2 {
    border-bottom: none;
}

.contact-email,
.contact-phone {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-email i,
.contact-phone i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.contact-email a,
.contact-phone a {
    font-weight: 600;
}

/* ==================
   Footer
   ================== */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.site-footer h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.acknowledgement {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.acknowledgement h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.acknowledgement p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logo_header_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding-block: 15px; */
}

.ihna_logo {
    max-height: 65px;
}

.flip-icon {
    transform: scaleX(-1);
    display: inline-block;
}

/* Highlight animation for scholarship results section */
.highlight-section {
    animation: highlightPulse 2s ease-in-out;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

@keyframes highlightPulse {
    0% {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
        transform: scale(1);
    }

    50% {
        background: linear-gradient(135deg, #fde68a 0%, #f59e0b 50%, #fde68a 100%);
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    }

    100% {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
        transform: scale(1);
    }
}

/* Ensure content sections respond to highlight */
.content-section.highlight-section {
    margin-top: 1rem;
    transition: all 0.3s ease;
}

/* ==================
   Responsive Design
   ================== */
.flip-icon {
    transform: scaleX(-1);
    display: inline-block;
}

/* Tablet */
@media (max-width: 991px) {
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 2rem;
    }

    .sidebar-sticky {
        position: relative;
        top: 0;
    }

    .main-area {
        padding: 0 1rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body {
        padding-top: 66px;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .brand-text {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 12rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .main-content {
        padding: 0 1rem 2rem 1rem;
    }

    .sidebar {
        padding: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .scholarship-amount {
        font-size: 1.5rem;
    }

    .scholarship-title {
        font-size: 1.25rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .accordion .btn-link {
        font-size: 1rem;
        padding: 1rem;
    }

    .cta-section .btn {
        margin-bottom: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 575px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .search-filter-box {
        padding: 1.5rem;
    }

    .scholarship-card {
        padding: 1.5rem;
    }
}

@media (min-width: 1440px) {

    .banner-section .container {
        max-width: 1320px;
    }

    .banner-form-container {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ==================
   Print Styles
   ================== */
@media print {

    .navbar,
    .sidebar,
    .cta-section,
    .site-footer {
        display: none;
    }

    body {
        padding-top: 0;
    }

    .hero-section {
        background: white;
        color: black;
    }

    .accordion .collapse {
        display: block !important;
    }
}

/* ==================
   Utility Classes
   ================== */
.text-primary-custom {
    color: var(--primary-color);
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

.border-primary-custom {
    border-color: var(--primary-color);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}