/* ============================================
   AK Institute of Commerce - Main Stylesheet
   Color Scheme: #F88229 (Orange) & #2B3B61 (Dark Blue)
   ============================================ */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #F88229;
    --secondary-color: #0f214d;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== TOP BAR (DESKTOP ONLY) ===== */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-bar-left a,
.top-bar-text {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar-left a:hover {
    color: var(--primary-color);
}

.top-bar-left i {
    margin-right: 8px;
    color: var(--primary-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.social-icon {
    color: var(--white);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 8px;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: var(--transition);
}

/* Sticky navbar for mobile only */
@media (max-width: 991px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.logo-img {
    max-height: 90px;
    width: auto;
    padding-bottom: 5px;
    transition: var(--transition);
}

/* Mobile Contact Icons */
.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-contact-icons {
    display: flex;
    gap: 10px;
    margin-right: 10px;
}

.mobile-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 16px;
    transition: var(--transition);
}

.mobile-icon:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Hide mobile elements on desktop */
@media (min-width: 992px) {
    .mobile-header-right,
    .mobile-contact-icons,
    .navbar-toggler {
        display: none !important;
    }
}

/* ===== MOBILE SIDEBAR ===== */
.mobile-sidebar {
    width: 300px !important;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1f2d47 100%);
}

/* Hide mobile sidebar on desktop */
@media (min-width: 992px) {
    .mobile-sidebar {
        display: none !important;
    }
}

.mobile-sidebar .offcanvas-header {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.mobile-sidebar .offcanvas-title img {
    filter: brightness(0) invert(1);
}

.btn-close-custom {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-close-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.mobile-sidebar .offcanvas-body {
    padding: 0;
}

/* Mobile Navigation List */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.mobile-nav-link i {
    width: 24px;
    font-size: 18px;
    color: var(--primary-color);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: rgba(248, 130, 41, 0.2);
    color: var(--primary-color);
    padding-left: 30px;
}

.mobile-nav-link.active {
    border-left: 4px solid var(--primary-color);
}

.mobile-nav-link.active i {
    color: var(--primary-color);
}

/* Mobile Contact Section */
.mobile-contact-section {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.mobile-section-title {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.mobile-contact-item i {
    width: 20px;
    color: var(--primary-color);
    font-size: 14px;
}

.mobile-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-contact-item a:hover {
    color: var(--primary-color);
}

/* Mobile Social Section */
.mobile-social-section {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social-links {
    display: flex;
    gap: 12px;
}

.mobile-social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 20px !important;
    margin: 0 5px;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(248, 130, 41, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F88229' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    /* background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%); */
    background: url(../images/slide-2.webp);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: .5;
    background-size: cover;
    background-position: bottom;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 100px 0;
}

.hero-content {
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(248, 130, 41, 0.3);
}

.btn-primary:hover {
    background-color: #e67520;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 130, 41, 0.4);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.section-text {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background-color: var(--white);
}

.about-section img {
    border-radius: 10px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background-color: var(--bg-light);
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff9a4d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 80px 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-breadcrumb {
    font-size: 16px;
    opacity: 0.9;
}

.page-breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background-color: var(--bg-light);
}

.contact-info-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(248, 130, 41, 0.25);
}

textarea.form-control {
    resize: vertical;
}

/* ===== ALERT MESSAGES ===== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert i {
    margin-right: 10px;
}

/* ===== TERMS & PRIVACY SECTIONS ===== */
.terms-section,
.privacy-section {
    background-color: var(--white);
}

.content-wrapper {
    /* max-width: 900px; */
    margin: 0 auto;
}

.content-wrapper h2 {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-wrapper h3 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-wrapper p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-wrapper ul {
    margin: 15px 0;
    padding-left: 0;
}

.content-wrapper ul li {
    color: var(--text-light);
    padding: 8px 0 8px 30px;
    position: relative;
}

.content-wrapper ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.last-updated {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
}

/* ===== ABOUT PAGE ===== */
.about-detail-section {
    background-color: var(--white);
}

.feature-box {
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #ff9a4d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
}

.feature-box h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--text-light);
    margin: 0;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    background-color: var(--bg-light);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(43, 59, 97, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 40px;
    color: var(--white);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
}

.footer-content {
    padding: 80px 0 40px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 20px;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social .social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    width: 20px;
    margin-right: 15px;
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
}

.copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-links {
    text-align: right;
}

.footer-bottom-links a, .footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-links a:hover ,  .footer-contact a:hover{
    color: var(--primary-color);
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    box-shadow: 0 4px 15px rgba(248, 130, 41, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    color: var(--white);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    animation: none;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* WhatsApp Button - Mobile Adjustments */
@media (max-width: 767px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .footer-bottom-links {
        text-align: center;
        margin-top: 15px;
    }
    
    .logo-img {
        max-height: 60px;
    }
}

@media (max-width: 767px) {
    section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .cta-title {
        font-size: 26px;
    }
    
    .service-card,
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .logo-img {
        max-height: 50px;
    }
    
    .mobile-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .navbar {
        padding: 10px 0;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}
