:root {
    --uk-saffron: #FF9933;
    --uk-green: #138808;
    --uk-white: #FFFFFF;
    --uk-blue: #000080;
    --gov-blue: #1a5c96;
    --gov-dark: #2c3e50;
    --gov-light: #f8f9fa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: var(--gov-dark);
}

.top-bar {
    background-color: var(--gov-blue);
    color: white;
    padding: 5px 0;
    font-size: 0.85rem;
}

.uk-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--uk-saffron);
}

.navbar-brand img {
    height: 70px;
    width: auto;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px;
    }

    .navbar-brand .fs-5 {
        font-size: 0.9rem !important;
    }

    .navbar-brand .small {
        font-size: 0.7rem !important;
    }
}

.nav-link {
    font-weight: 600;
    color: var(--gov-dark) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    /* Slightly smaller for better fit */
    padding: 0.8rem 1rem !important;
    /* More compact padding */
    transition: all 0.3s;
    display: flex !important;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.nav-link i {
    font-size: 1rem;
    margin-top: -2px;
    /* Visual centering */
}

.nav-link:hover,
.nav-link.active {
    color: var(--uk-saffron) !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--uk-saffron);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1626621341517-bbf3d9990a23?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-item {
    transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out;
}

.carousel-caption h1 {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: -1px;
}

.carousel-caption p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    max-width: 800px;
}

/* Custom Curved Split Slider */
.hero-carousel-custom {
    position: relative;
    overflow: hidden;
}

.hero-carousel-custom .carousel-item {
    height: 600px;
    /* Increased height */
    background: #002b5c;
    /* Dark blue background from reference */
}

.slide-content-wrapper {
    display: flex;
    height: 100%;
    position: relative;
}

.slide-text-section {
    width: 50%;
    padding: 60px 8% 60px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    z-index: 2;
}

.slide-image-section {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    /* Overlap for the curve */
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: ellipse(80% 100% at 85% 50%);
    /* Creative curve attempt */
}

/* Precise Curve using clip-path on the container */
.slide-image-masked {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* This creates the concave curve on the left side of the image section */
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
    /* Better curve with ellipse or path */
    clip-path: path('M 120 0 L 1000 0 L 1000 600 L 120 600 C 0 450, 0 150, 120 0 Z');
    /* Fallback for simpler curve if path is tricky */
    clip-path: ellipse(90% 100% at 100% 50%);
}

/* Refining the curve based on image */
.hero-split-slide {
    display: flex;
    height: 600px;
    background: #003057;
    /* Professional Navy */
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.hero-split-text {
    flex: 0 0 45%;
    padding: 80px 4% 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-split-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 65%;
    background-size: cover;
    background-position: center;
    /* More professional concave curve using SVG-like path feel */
    clip-path: ellipse(85% 120% at 95% 50%);
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-custom .carousel-item.active .hero-split-image {
    transform: scale(1.05);
    /* Subtle zoom for active slide */
}

.breadcrumb-slider {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.breadcrumb-slider a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-slider a:hover {
    color: #ffffff;
}

.breadcrumb-slider .separator {
    margin: 0 8px;
    opacity: 0.5;
}

.hero-split-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 25px;
    letter-spacing: -2px;
    color: #ffffff;
}

.hero-split-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 580px;
    font-weight: 400;
}

/* Re-styling buttons for premium feel */
.hero-split-text .btn-warning {
    background-color: var(--uk-saffron) !important;
    border-color: var(--uk-saffron) !important;
    color: #000 !important;
    padding: 14px 35px !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-split-text .btn-warning:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(255, 153, 51, 0.3) !important;
}

.hero-split-text .btn-light {
    padding: 14px 35px !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-split-text .btn-light:hover {
    background: #ffffff !important;
    color: #003057 !important;
    border-color: #ffffff !important;
}

@media (max-width: 992px) {
    .hero-split-slide {
        height: auto;
        min-height: 500px;
    }

    .hero-split-text {
        flex: 0 0 100%;
        width: 100%;
        padding: 60px 5%;
        z-index: 10;
        background: linear-gradient(90deg, #003057 40%, rgba(0, 48, 87, 0.9) 100%);
    }

    .hero-split-image {
        width: 100%;
        clip-path: none;
        opacity: 0.3;
    }

    .hero-split-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .carousel-item {
        height: 400px !important;
    }

    .carousel-caption h1 {
        font-size: 1.8rem !important;
    }

    .carousel-caption {
        bottom: 10% !important;
    }

    .hero-split-text h1 {
        font-size: 2.2rem;
    }

    .hero-split-text p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 0.75rem;
        padding: 8px 0;
    }

    .hero-split-text {
        padding: 40px 5%;
    }

    .hero-split-text h1 {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }

    .hero-split-text .btn-warning,
    .hero-split-text .btn-light {
        width: 100%;
        margin-bottom: 10px;
        display: block;
        padding: 12px 20px !important;
    }

    .news-ticker {
        font-size: 0.8rem;
    }
}

.news-ticker {
    background: var(--uk-green);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ticker-wrapper {
    overflow: hidden;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.quick-link-card {
    border: none;
    border-top: 5px solid var(--gov-blue);
    border-radius: 8px;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.footer {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 70px 0 0 0;
    border-top: 5px solid var(--uk-saffron);
}

.footer h3,
.footer h5 {
    color: #fff;
    border-bottom: none;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer .footer-link {
    color: #bdc3c7;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.8rem;
}

.footer .footer-link:hover {
    color: var(--uk-saffron);
    padding-left: 8px;
    text-decoration: none;
}

.footer .copyright-bar {
    background-color: #121a21;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
}

.notice-board {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.notice-item {
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
}

.notice-item:last-child {
    border-bottom: none;
}

/* Portal Forms Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.portal-grid-item {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.portal-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.portal-grid-item .icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-grid-item .icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.portal-grid-item .title-en {
    font-weight: 800;
    font-size: 0.85rem;
    color: #1a5c96;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 5px;
}

.portal-grid-item .title-hi {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Hero Section Responsive Refinements */
@media (max-width: 992px) {
    .hero-split-slide {
        height: auto;
        min-height: 500px;
        flex-direction: column;
    }

    .hero-split-text {
        flex: 0 0 100%;
        width: 100%;
        padding: 60px 5%;
        z-index: 10;
        background: linear-gradient(to bottom, rgba(0, 48, 87, 0.95) 0%, rgba(0, 48, 87, 0.8) 100%);
        align-items: center;
        text-align: center;
    }

    .hero-split-image {
        position: absolute;
        width: 100%;
        height: 100%;
        clip-path: none;
        opacity: 0.4;
        z-index: 1;
    }

    .hero-split-text h1 {
        font-size: 2.8rem;
    }

    .hero-split-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hero-split-slide {
        min-height: 450px;
    }

    .hero-split-text {
        padding: 40px 20px;
    }

    .hero-split-text h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-split-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-split-text .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 15px !important;
    }

    .hero-split-text .btn {
        width: 100%;
        display: block;
        margin-bottom: 5px;
        padding: 10px 20px !important;
    }

    .hero-split-text .gap-3 {
        gap: 10px !important;
    }
}

/* Birthday Section Styles */
.birthday-section {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-bottom: 1px solid #e0e0e0;
}

.birthday-card-wrapper {
    max-width: 900px;
    background-color: #f8f9fa;
    /* Fallback */
    background-image: radial-gradient(#FFD700 15%, transparent 16%),
        radial-gradient(#FF69B4 15%, transparent 16%),
        radial-gradient(#00CED1 15%, transparent 16%),
        radial-gradient(#32CD32 15%, transparent 16%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px, 15px 45px, 45px 15px;
    /* Confetti effect */
    border-radius: 20px;
    border: 2px solid #28a745;
    /* Green border as in image */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    padding: 10px;
}

/* Overlay to soften the confetti background */
.birthday-card-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.birthday-photo-frame {
    width: 250px;
    height: 280px;
    position: relative;
    padding: 10px;
    border-radius: 20px;
    background: #d4edda;
    /* Light green background */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.birthday-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid #fff;
}

.birthday-date-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    /* Orange badge */
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    border: 2px solid #fff;
    z-index: 5;
}

.birthday-message-box {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.speech-arrow {
    position: absolute;
    left: -15px;
    top: 50px;
    width: 30px;
    height: 30px;
    background: #fff;
    transform: rotate(45deg);
    z-index: 0;
}

.birthday-name-title {
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #1a237e;
}

.birthday-text {
    line-height: 1.6;
    font-size: 1.05rem;
}

.birthday-nav-btn {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.birthday-nav-btn:hover {
    opacity: 1;
}

.birthday-nav-btn .carousel-control-prev-icon,
.birthday-nav-btn .carousel-control-next-icon {
    width: 40px;
    height: 40px;
}

/* Birthday Section Responsive */
@media (max-width: 768px) {
    .birthday-card-wrapper {
        padding: 20px 10px;
        overflow: visible;
    }

    .birthday-photo-frame {
        width: 200px;
        height: 220px;
        margin-bottom: 2.5rem;
    }

    .speech-arrow {
        display: none;
    }

    .birthday-message-box {
        text-align: center;
        padding: 1.5rem !important;
    }

    .birthday-message-box .d-flex {
        justify-content: center !important;
    }

    .birthday-nav-btn {
        width: 10%;
    }

    .birthday-name-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .birthday-text {
        font-size: 1.15rem;
    }

    .birthday-date-badge {
        padding: 6px 18px;
        font-size: 1.1rem;
    }

    /* Recover visibility: allow carousel to grow with content */
    #birthdayCarousel .carousel-item {
        height: auto !important;
        min-height: 0;
    }
}