/* Custom Color Theme for Edupath Study Hub */
:root {
    --edu-primary: #004aad;    /* Change this to your favorite blue */
    --edu-secondary: #ff914d;  /* Change this for your action buttons */
    --edu-dark: #1a1a1a;
}
.top-bar {
    /* Increased base font size */
    font-size: 0.95rem; 
    font-weight: 500;
}

/* Make Icons slightly larger than the text */
.top-bar i {
    font-size: 1.1rem; 
}

/* Social Media icons specifically */
.top-social i {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.top-social a:hover i {
    transform: scale(1.2);
    color: var(--edu-primary);
}

/* Adjusting for Mobile: stack them nicely if the screen is too narrow */
@media (max-width: 991px) {
    .top-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Adjusting for Mobile */
@media (max-width: 576px) {
    .top-bar .container {
        justify-content: center !important;
        text-align: center;
    }
    .top-social {
        margin-top: 5px;
        width: 100%;
    }
}
/* Change Navbar Color */
.navbar {
    border-bottom: 3px solid var(--edu-primary);
}

.text-primary {
    color: var(--edu-primary) !important;
}

/* Customizing the Bootstrap Caret (Arrow) */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.55rem; /* Space between text and arrow */
    vertical-align: 0.255em;
    content: "";
    border-top: 0.4em solid; /* Size of the arrow */
    border-right: 0.4em solid transparent;
    border-bottom: 0;
    border-left: 0.4em solid transparent;
    color: var(--edu-primary); /* Sets arrow to your brand blue */
}

/* Optional: Rotate arrow when the menu is open */
.show.dropdown-toggle::after {
    transform: rotate(180deg);
    transition: transform 0.2s ease-in-out;
}
/* Change ALL Primary Buttons */
.btn-primary {
    background-color: var(--edu-primary) !important;
    border-color: var(--edu-primary) !important;
}

.btn-primary:hover {
    background-color: #003a8c !important; /* Slightly darker on hover */
}

/* Style the "Enroll Now" or Special Action Buttons */
.btn-enroll, .btn-secondary {
    background-color: var(--edu-secondary) !important;
    border-color: var(--edu-secondary) !important;
    color: white !important;
}

/* Background Sections */
.bg-light {
    background-color: #f0f4f8 !important; /* A very soft blue-grey */
}

/* Styling for the Highlighted Blocks */
.why-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid transparent !important; /* Accent line at bottom */
}

.why-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Specific Block Colors */
.psychology-bg { 
    background-color: #e7f3ff; /* Soft Blue */
    border-color: #0d6efd !important; 
}
.experience-bg { 
    background-color: #fff4e6; /* Soft Orange */
    border-color: #fd7e14 !important; 
}
.hybrid-bg { 
    background-color: #e6fffa; /* Soft Teal */
    border-color: #20c997 !important; 
}

/* Icon Styling inside blocks */
.icon-circle {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    color: var(--edu-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.icon-circle i {
    color: #0bbe6b !important; /* Replace with your hex code */
}
/* Floating Container */
.floating-buttons {
    position: fixed;
    bottom: 50px;
left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000; /* Ensures buttons stay on top of everything */
}
/* YouTube Floating Button Style */
.btn-youtube {
    background-color: #FF0000; /* Official YouTube Red */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-youtube:hover {
    background-color: #cc0000; /* Darker red on hover */
    transform: scale(1.05);
}

/* Ensure all floating buttons have a consistent width */
.float-btn {
    min-width: 160px; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 12px 20px;
}
/* Common button styling */
.float-btn {
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
    color: white;
}
/* Video Gallery Styling */
.video-card {
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card iframe {
    border-radius: 12px 12px 0 0;
}

#youtube-gallery .btn-danger {
    background-color: #FF0000;
    border: none;
    font-weight: 600;
    border-radius: 30px;
}
/* --- Back to Top Button (Now on the Right) --- */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px; /* Changed from left to right */
    display: none; 
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1000;
    border: none;
    background-color: var(--edu-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#btn-back-to-top:hover {
  transform: scale(1.1);
}
/* Specific Button Colors */
.btn-whatsapp { background-color: #25d366; }
.btn-enroll { background-color: #0d6efd; }

/* Icon spacing */
.float-btn i { margin-right: 8px; }

/* Mobile optimization: make buttons smaller on small screens */
@media (max-width: 576px) {
    .float-btn { padding: 10px 15px; font-size: 14px; }
}
.btn-enroll {
    background-color: #ff914d !important;
    color: white !important;
    border-radius: 25px;
    font-weight: bold;
}
/* Change color and add a bottom line on hover */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #004aad !important; /* Your brand blue */
}

/* Adds a sliding underline effect */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #004aad;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}
/* Add a custom font for better readability */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Open dropdown on hover (Desktop only) */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Prevents a gap that might close the menu */
        border-top: 3px solid #004aad; /* Adds a nice brand-colored line at the top */
        animation: fadeIn 0.3s; /* Optional: smooth fade-in */
    }
}

/* Optional: Smooth Fade Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Styling for the current/active page link */
.navbar-nav .nav-link.active {
    color: var(--edu-primary) !important; /* Your brand blue */
    font-weight: 700;
}

.navbar-nav .nav-link.active::after {
    width: 100%; /* Keeps the underline visible */
    background-color: var(--edu-primary);
}
/* Keeps the parent dropdown highlighted if a sub-item is active */
.navbar-nav .nav-item.dropdown .nav-link.active {
    background-color: rgba(0, 74, 173, 0.1); /* Very light blue background */
    border-radius: 5px;
}